SelfDrawerAttribute Class

Summary

[Editor-Conditional] A UnityEngine.PropertyAttribute which draws itself rather than needing a separate UnityEditor.PropertyDrawer.
Assembly
Animancer.dll
Namespace
Animancer
Base Types
  • PropertyAttribute
Derived Types
graph BT Type-->Base0["PropertyAttribute"] Type["SelfDrawerAttribute"] class Type type-node Derived0["UnitsAttribute"]-->Type click Derived0 "/animancer/api/Animancer.Units/UnitsAttribute"

Syntax

[System.Diagnostics.Conditional(Strings.UnityEditor)]
public abstract class SelfDrawerAttribute : PropertyAttribute

Attributes

Type Description
ConditionalAttribute

Methods

Name Value Summary
CanCacheInspectorGUI(SerializedProperty) bool
[Editor-Only] Can the GUI for the `property` be cached?
GetPropertyHeight(SerializedProperty, GUIContent) float
[Editor-Only] Calculates the height of the GUI for the `property`.
OnGUI(Rect, SerializedProperty, GUIContent) void
[Editor-Only] Draws the GUI for the `property`.