Summary
[Editor-Conditional]
Causes a float field to display using 3 fields: Normalized, Seconds, and Frames.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Units - Base Types
-
- PropertyAttribute
- UnitsAttribute
graph BT
Type-->Base0["UnitsAttribute"]
click Base0 "/animancer/api/Animancer.Units/UnitsAttribute"
Base0-->Base1["PropertyAttribute"]
Type["AnimationTimeAttribute"]
class Type type-node
Syntax
[System.Diagnostics.Conditional(Strings.UnityEditor)]
public sealed class AnimationTimeAttribute : UnitsAttribute
Remarks
Documentation:
Time Fields
Attributes
Type | Description |
---|---|
ConditionalAttribute |
Constructors
Name | Summary |
---|---|
Animation |
Cretes a new Animancer.Units.AnimationTimeAttribute . |
Fields
Name | Constant Value | Summary |
---|---|---|
Multipliers |
The multipliers to convert from the field's actual value to each unit type.
Inherited from UnitsAttribute
|
|
Suffixes |
The unit suffix to display at the end of the value in each field.
Inherited from UnitsAttribute
|
|
Tooltip | x = Normalized, s = Seconds, f = Frames |
An explanation of the suffixes used in fields drawn by this attribute.
static
|
UnitIndex |
The index of the multiplier where the field stores its actual value.
Inherited from UnitsAttribute
|
Properties
Name | Value | Summary |
---|---|---|
DefaultValue | float |
The value to display if the actual value is
System.Single.NaN .Inherited from UnitsAttribute
|
DisabledText | string |
Optional text to display instead of the regular fields when the value is
System.Single.NaN .Inherited from UnitsAttribute
|
IsOptional | bool |
Should the field have a toggle to set its value to
System.Single.NaN ?Inherited from UnitsAttribute
|
Rule | Validate |
The validation rule applied to the value.
Inherited from UnitsAttribute
|