chore: initial commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
// Animancer // https://kybernetik.com.au/animancer // Copyright 2018-2026 Kybernetik //
|
||||
|
||||
namespace Animancer
|
||||
{
|
||||
/// <summary>[Editor-Conditional]
|
||||
/// A <see cref="DefaultValueAttribute"/> which uses the <see cref="AnimancerGraph.DefaultFadeDuration"/> and 0.
|
||||
/// </summary>
|
||||
/// https://kybernetik.com.au/animancer/api/Animancer/DefaultFadeValueAttribute
|
||||
///
|
||||
public class DefaultFadeValueAttribute : DefaultValueAttribute
|
||||
{
|
||||
/************************************************************************************************************************/
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override object Primary => AnimancerGraph.DefaultFadeDuration;
|
||||
|
||||
/************************************************************************************************************************/
|
||||
|
||||
/// <summary>Creates a new <see cref="DefaultValueAttribute"/>.</summary>
|
||||
public DefaultFadeValueAttribute()
|
||||
{
|
||||
// This won't change so there's no need to box the value every time by overriding the property.
|
||||
Secondary = 0f;
|
||||
}
|
||||
|
||||
/************************************************************************************************************************/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user