Summary
[Editor-Only]
A
UnityEditor.PropertyDrawer
for Animancer.AnimancerTransitionAssetBase.UnShared`1
.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Base Types
-
- PropertyDrawer
graph BT
Type-->Base0["PropertyDrawer"]
Type["AnimancerTransitionAssetBase.UnSharedTransitionDrawer"]
class Type type-node
Syntax
[CustomPropertyDrawer(typeof(UnShared<>), true)]
public class AnimancerTransitionAssetBase.UnSharedTransitionDrawer : PropertyDrawer
Remarks
This class doesn't inherit from
Animancer.Editor.TransitionDrawer
(which would let it draw the button to open the
Animancer.Editor.TransitionPreviewWindow
) because it would only show the Transition Asset reference field without
any of the actual values (fade duration, speed, etc.) and trying to redirect everything necessary to preview
the asset's transition would require significant additional complexity.
This issue can be avoided using the
Nested Inspectors in Inspector Gadgets by opening the asset's Inspector and previewing it directly.
Attributes
Type | Description |
---|---|
CustomPropertyDrawer |
Methods
Name | Value | Summary |
---|---|---|
GetPropertyHeight |
float | |
OnGUI |
void |