Summary
[Editor-Only] Utilities for using
Animancer.DefaultValueAttribute
s.- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["DefaultValues"]
class Type type-node
Syntax
public static class DefaultValues
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.
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.
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.
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.
static
|