Class CommentPropertyDrawer
- Namespace
- Gamelogic.Extensions.Editor
- Assembly
- Assembly-CSharp-Editor.dll
A property drawer for fields marked with the CommentAttribute. Similar to Header, but useful for longer descriptions.
[CustomPropertyDrawer(typeof(CommentAttribute), true)]
public class CommentPropertyDrawer : DecoratorDrawer
- Inheritance
-
GUIDrawerCommentPropertyDrawer
- Inherited Members
-
DecoratorDrawer.CanCacheInspectorGUI()DecoratorDrawer.attribute
- Extension Methods
Methods
GetHeight()
Override this method to specify how tall the GUI for this decorator is in pixels.
public override float GetHeight()
Returns
OnGUI(Rect)
Override this method to make your own GUI for the decorator. See DecoratorDrawer for an example of how to use this.
public override void OnGUI(Rect position)
Parameters
position
RectRectangle on the screen to use for the decorator GUI.