Search Unity

Question Clear Editor Selection

Discussion in 'Editor Workflows' started by raingame_, Dec 13, 2022.

  1. raingame_

    raingame_

    Joined:
    Jan 15, 2019
    Posts:
    28
    I use
    Code (CSharp):
    1. EditorGUILayout.SelectableLabel(content, ...);
    content changes depending on category I select, but if I select different category while label is selected for copy & paste content doesn't change. Even if deselect content and select other category content stays the same, content gets updated only if I change focus on other window in Unity.
    How do I clear selection and force update content even if it's selected? I can't find an API for it. Repaint isn't helping :(
     
    buscatrufo likes this.