Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

EditorGUILayout.TextArea is not refreshing? [Custom Inspector]

Discussion in 'Immediate Mode GUI (IMGUI)' started by Dymental, Dec 20, 2015.

  1. Dymental

    Dymental

    Joined:
    Sep 14, 2014
    Posts:
    29
    When I pass a string into multiple TextAreas and change the string with a script then pass it again it won't update - well it will update but after a few secs.

    with a GUILayout.Textarea this won't happen they update onInspectorGUI

    Bug or Feature (is there something to force editorguilayout.textarea to refresh)
     
    Mark-Currie likes this.
  2. amitDklein

    amitDklein

    Joined:
    Apr 10, 2017
    Posts:
    20
    From what I found:

    Code (CSharp):
    1. GUIUtility.keyboardControl = 0;
    2. GUIUtility.hotControl = 0;
    This loses focus from the window, didn't find a way to get it back thought
     
    Mark-Currie likes this.