DefaultFadeValueAttribute Class

Summary

[Editor-Conditional] A Animancer.DefaultValueAttribute which uses the Animancer.AnimancerPlayable.DefaultFadeDuration and 0.
Assembly
Animancer.dll
Namespace
Animancer
Base Types
graph BT Type-->Base0["DefaultValueAttribute"] click Base0 "/animancer/api/Animancer/DefaultValueAttribute" Base0-->Base1["Attribute"] Type["DefaultFadeValueAttribute"] class Type type-node

Syntax

public class DefaultFadeValueAttribute : DefaultValueAttribute

Constructors

Name Summary
DefaultFadeValueAttribute() 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 DefaultValueAttribute

Methods

Name Value Summary
SetToDefault<T>(T) 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 DefaultValueAttribute
SetToDefault<T>(T, FieldInfo) 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 DefaultValueAttribute
static
SetToDefault<T>(T, SerializedProperty) 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 DefaultValueAttribute
static
SetToDefault<T>(T, T, T) 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 DefaultValueAttribute
static