ScriptReference/EditorGUI.DrawRect #383
Replies: 1 comment
-
|
Comment by Although it is stated on this page "You can also use them to simulate statistics in the Editor, for example, an in-Editor health bar", there is a notable overhead to using EditorGUI.DrawRect which makes it unsuitable for more complex representations (eg: point graphs). In situations such as the aforementioned point graph, it is significantly more performant to create and cache a Texture2D any time the underlying values are changed and to display that Texture2D as the GUIContent of a LabelField. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/EditorGUI.DrawRect
https://docs.unity3d.com/ScriptReference/EditorGUI.DrawRect.html
Beta Was this translation helpful? Give feedback.
All reactions