08-29-2023, 01:37 PM
(This post was last modified: 08-29-2023, 01:38 PM by Mike Danielsson.)
Hello!
We use CurveySplines as one of the tools for our upcoming game. We also use other tools that utilize the GUILayout.TextField (input fields in the SceneView window). But it seems that GUILayout.TextField dont work when CurveySplines is inside the Asset folder. And work as they should when CurveySplines is removed. GUILayout.TextField are displayed in the SceneView but will not be active on mouse press and you cant change the input value.
We are developing on Mac and use Unity version 2021.3.16f1.
Test case:
We use CurveySplines as one of the tools for our upcoming game. We also use other tools that utilize the GUILayout.TextField (input fields in the SceneView window). But it seems that GUILayout.TextField dont work when CurveySplines is inside the Asset folder. And work as they should when CurveySplines is removed. GUILayout.TextField are displayed in the SceneView but will not be active on mouse press and you cant change the input value.
We are developing on Mac and use Unity version 2021.3.16f1.
Test case:
Code:
using UnityEngine;
using UnityEditor;
public class Test {
[UnityEditor.Callbacks.DidReloadScripts]
private static void DidReloadScripts() {
SceneView.duringSceneGui += OnSCeneGUI;
}
private static void OnSCeneGUI(SceneView sceneView) {
Handles.BeginGUI();
GUILayout.BeginArea(new Rect(300, 300, 200, 60));
GUILayout.TextField("testing");
GUILayout.EndArea();
Handles.EndGUI();
}
}