Summary
[Editor-Conditional]
A
Animancer.DefaultValueAttribute
which uses the Animancer.AnimancerPlayable.DefaultFadeDuration
and 0.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Base Types
-
- Attribute
- Default
Value Attribute
graph BT
Type-->Base0["DefaultValueAttribute"]
click Base0 "/animancer-v7-4/api/Animancer/DefaultValueAttribute"
Base0-->Base1["Attribute"]
Type["DefaultFadeValueAttribute"]
class Type type-node
Syntax
public class DefaultFadeValueAttribute : DefaultValueAttribute
Constructors
Name | Summary |
---|---|
Default |
Creates a new Animancer.DefaultValueAttribute . |
Properties
Name | Value | Summary |
---|---|---|
Primary | Object |
The main default value.
|
Secondary | Object |
The fallback value to use if the target value was already equal to the
Animancer.DefaultValueAttribute.Primary .Inherited from Default
|
Methods
Name | Value | Summary |
---|---|---|
SetToDefault |
void |
[Editor-Only]
Sets the `value` equal to the
Animancer.DefaultValueAttribute.Primary value. If it was already at the value, it sets it equal
to the Animancer.DefaultValueAttribute.Secondary value instead.
Inherited from Default
|
SetToDefault |
void |
[Editor-Only]
If the field represented by the `property` has a
Animancer.DefaultValueAttribute , this method sets
the `value` to its Animancer.DefaultValueAttribute.Primary value. If it was already at the value, it sets it to the
Animancer.DefaultValueAttribute.Secondary value instead. And if the field has no attribute, it uses the default for the type.
Inherited from Default
static
|
SetToDefault |
void |
[Editor-Only]
If the field represented by the `property` has a
Animancer.DefaultValueAttribute , this method sets
the `value` to its Animancer.DefaultValueAttribute.Primary value. If it was already at the value, it sets it to the
Animancer.DefaultValueAttribute.Secondary value instead. And if the field has no attribute, it uses the default for the type.
Inherited from Default
static
|
SetToDefault |
void |
[Editor-Only]
Sets the `value` equal to the `primary` value. If it was already at the value, it sets it equal to the
`secondary` value instead.
Inherited from Default
static
|