Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GUILayout.TextField:s dont work with CurveySplines
#1
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:
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();
  }
}
Reply


Messages In This Thread
GUILayout.TextField:s dont work with CurveySplines - by Mike Danielsson - 08-29-2023, 01:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to modify Example 12 to work bi-directionally and more than 2 connected splines Mambosa 3 17 11-29-2022, 06:59 PM
Last Post: _Aka_
  Great product! Documentation needs work! blabz2007 3 544 08-28-2021, 08:52 AM
Last Post: _Aka_
  How do waypoint collisions work? funkd 1 2,363 05-21-2019, 10:29 PM
Last Post: _Aka_
  Script inheriting SplineController doesn't work the same as adding component? clearleaf 1 2,177 04-28-2019, 12:41 PM
Last Post: _Aka_

Forum Jump: