Summary
[Editor-Conditional] A multiplier displayed with an
x
suffix.- Assembly
- Animancer
.dll - Namespace
- Animancer
.Units - Base Types
-
- PropertyAttribute
- SelfDrawerAttribute
- UnitsAttribute
graph BT
Type-->Base0["UnitsAttribute"]
click Base0 "/animancer-v7-4/api/Animancer.Units/UnitsAttribute"
Base0-->Base1["SelfDrawerAttribute"]
click Base1 "/animancer-v7-4/api/Animancer/SelfDrawerAttribute"
Base1-->Base2["PropertyAttribute"]
Type["MultiplierAttribute"]
class Type type-node
Syntax
[System.Diagnostics.Conditional(Strings.UnityEditor)]
public sealed class MultiplierAttribute : UnitsAttribute
Remarks
Documentation: Units Attribute
Attributes
Type | Description |
---|---|
ConditionalAttribute |
Constructors
Name | Summary |
---|---|
MultiplierAttribute |
Properties
Name | Value | Summary |
---|---|---|
DefaultValue | float |
[Editor-Only] The value to display if the actual value is
System.Single.NaN .Inherited from UnitsAttribute
|
DisplayConverters | Compact |
[Editor-Only] The converters used to generate display strings for each of the fields.
Inherited from UnitsAttribute
|
IsOptional | bool |
[Editor-Only] Should the field have a toggle to set its value to
System.Single.NaN ?Inherited from UnitsAttribute
|
LineHeight | float |
[Editor-Only] Returns
Animancer.Editor.AnimancerGUI.LineHeight .Inherited from UnitsAttribute
static
|
Multipliers | float[] |
[Editor-Only] The unit conversion ratios.
Inherited from UnitsAttribute
|
Rule | Validate |
The validation rule applied to the value.
Inherited from UnitsAttribute
|
StandardSpacing | float |
[Editor-Only] Returns
Animancer.Editor.AnimancerGUI.StandardSpacing .Inherited from UnitsAttribute
static
|
UnitIndex | int |
[Editor-Only] The index of the
Animancer.Units.UnitsAttribute.DisplayConverters for the attributed serialized value.Inherited from UnitsAttribute
|
Methods
Name | Value | Summary |
---|---|---|
BeginProperty |
void |
[Editor-Only] Begins a GUI property block to be ended by
Animancer.Units.UnitsAttribute.EndProperty(UnityEngine.Rect,UnityEditor.SerializedProperty,System.Single@) .Inherited from UnitsAttribute
static
|
CanCacheInspectorGUI |
bool |
[Editor-Only] Can the GUI for the `property` be cached?
Inherited from SelfDrawerAttribute
|
DoFieldGUI |
void |
[Editor-Only] Draws this attribute's fields.
Inherited from UnitsAttribute
|
DoSpecialFloatField |
float |
[Editor-Only]
Draws a
UnityEditor.EditorGUI.FloatField(UnityEngine.Rect,UnityEngine.GUIContent,System.Single) with an alternate string when it is not
selected (for example, "1" might become "1s" to indicate "seconds").
Inherited from UnitsAttribute
static
|
EndProperty |
void |
[Editor-Only] Ends a GUI property block started by
Animancer.Units.UnitsAttribute.BeginProperty(UnityEngine.Rect,UnityEditor.SerializedProperty,UnityEngine.GUIContent@,System.Single@) .Inherited from UnitsAttribute
static
|
GetDisplayValue |
float |
[Editor-Only] Returns the value that should be displayed for a given field.
Inherited from UnitsAttribute
static
|
GetLineCount |
int |
[Editor-Only] Determines how many lines tall the `property` should be.
Inherited from UnitsAttribute
|
GetPropertyHeight |
float |
[Editor-Only] Calculates the height of the GUI for the `property`.
Inherited from UnitsAttribute
|
OnGUI |
void |
[Editor-Only] Draws this attribute's fields for the `property`.
Inherited from UnitsAttribute
|
SetUnits |
void |
[Editor-Only] Sets the unit details.
Inherited from UnitsAttribute
|