DefaultValueAttribute.

SetToDefault<T>(T, T, T) Method

Summary

[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.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
DefaultValueAttribute

Syntax

public static void SetToDefault<T>(ref T value, T primary, T secondary)

Type Parameters

Name Description
T

Parameters

Name Type Description
value T
primary T
secondary T

Return Value

Type Description
void