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
  Connections doesn't work in split scenes nehvaleem 4 2,892 05-29-2024, 07:31 AM
Last Post: _Aka_
Question How to modify Example 12 to work bi-directionally and more than 2 connected splines Mambosa 3 2,200 11-29-2022, 06:59 PM
Last Post: _Aka_
  Great product! Documentation needs work! blabz2007 3 3,039 08-28-2021, 08:52 AM
Last Post: _Aka_
  How do waypoint collisions work? funkd 1 3,771 05-21-2019, 10:29 PM
Last Post: _Aka_

Forum Jump: