Table of Contents

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
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.

public override float GetHeight()

Returns

float

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 Rect

Rectangle on the screen to use for the decorator GUI.