Summary
[Editor-Only] A
UnityEditor.PropertyDrawer
which adds an "Edit" button to a field.- Assembly
- FlexiMotion
.dll - Namespace
- FlexiMotion
.Editor - Base Types
-
- PropertyDrawer
- Derived Types
graph BT
Type-->Base0["PropertyDrawer"]
Type["EditableFieldDrawer"]
class Type type-node
Derived0["SphereColliderDefinitionsDrawer"]-->Type
click Derived0 "/flexi-motion/api/FlexiMotion.Editor/SphereColliderDefinitionsDrawer"
Derived1["SpringDefinitionsDrawer"]-->Type
click Derived1 "/flexi-motion/api/FlexiMotion.Editor/SpringDefinitionsDrawer"
Syntax
public abstract class EditableFieldDrawer : PropertyDrawer
Events
Name | Type | Summary |
---|---|---|
OnEdit | Action |
The method to call when the "Edit" button is clicked.
static
|
Methods
Name | Value | Summary |
---|---|---|
GetEditButtonLabel |
void |
Sets the `label` for the "Edit" button.
|
GetPropertyHeight |
float | |
OnGUI |
void |
Extension Methods
Name | Value | Summary |
---|---|---|
LogTemp |
T |
Debug.Log(message, context) with an [System.ObsoleteAttribute ] warning so you remember
to remove any calls.
From FMUtilities
|
SafeGetHashCode |
int |
Uses
System.Collections.Generic.EqualityComparer`1.Default to get a hash code.From FMUtilities
|