Property drawer for the CircularBuffer generic class. One MUST derive a version of this class, for each non-generic variant of CircularBuffer to be displayed. e.g.
[System.Serializable] public class IntBuffer : CircularBuffer/<int> { public IntBuffer(int size) : base(size) { } } [CustomPropertyDrawer(typeof(IntBuffer))] public class IntBufferPropertyDrawer : CircularBufferPropertyDrawer/<int>
- Template Parameters
-
| T | This type must match the one specified in the CircularBuffer |
|
| override float | GetPropertyHeight (SerializedProperty property, GUIContent label) |
| | Computes and returns the height required to draw the CircularBuffer
|
| |
| override void | OnGUI (Rect position, SerializedProperty property, GUIContent label) |
| | Draw the property inside the given rect. Draws special controls for CircularBuffers, and also exposes the entire storage array.
|
| |
|
| virtual float | InternalDraw (Rect position, SerializedProperty property, GUIContent label, bool heightOnly) |
| | Internal function handles both drawing, and height computations. Weather or not it will draw controls, or just compute the height depend of the heightOnly parameter.
|
| |