Summary
[Editor-Conditional] Specifies the default value of a field and a secondary fallback.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Base Types
-
- Attribute
- Derived Types
graph BT
Type-->Base0["Attribute"]
Type["DefaultValueAttribute"]
class Type type-node
Derived0["DefaultFadeValueAttribute"]-->Type
click Derived0 "/animancer/api/Animancer/DefaultFadeValueAttribute"
Syntax
[AttributeUsage(AttributeTargets.Field)]
[System.Diagnostics.Conditional(Strings.UnityEditor)]
public class DefaultValueAttribute : Attribute
Attributes
Type | Description |
---|---|
Attribute |
|
ConditionalAttribute |
Constructors
Name | Summary |
---|---|
Default |
Creates a new Animancer.DefaultValueAttribute . |
Default |
Creates a new Animancer.DefaultValueAttribute . |
Properties
Extension 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.
From DefaultValues
|