Table of Contents

Class CommentPropertyDrawer

Namespace
Gamelogic.Extensions.Editor
Assembly
Gamelogic.Extensions.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
GUIDrawer
CommentPropertyDrawer
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.

OnGUI(Rect)
<p>Override this method to make your own GUI for the decorator.

See DecoratorDrawer for an example of how to use this.