GUIStyle style = new GUIStyle();
style.normal = new GUIStyleState();
style.normal.background = Texture2D.whiteTexture;
Handles.Label(pos, "text", style);
참고
[1] https://discussions.unity.com/t/can-i-set-a-solid-background-for-a-gui-label/217763/3
[2] https://docs.unity3d.com/ScriptReference/GUIStyleState.html
'Unity > UnityEditor' 카테고리의 다른 글
[Unity/UnityEditor] Undo (0) | 2023.09.25 |
---|---|
[Unity/UnityEditor] Undo Redo MissingReference (0) | 2023.07.28 |
[Unity/UnityEditor] 용어 정리 (0) | 2023.05.23 |
[Unity/UnityEditor] EditorApplication, EditorSceneManager (0) | 2023.05.17 |
[Unity/UnityEditor] UnityEditor.Selection (0) | 2023.05.10 |