PerSecondAttribute Class

Summary

[Editor-Conditional] A value measured per second (/s).
Assembly
Animancer.dll
Namespace
Animancer.Units
Base Types
graph BT Type-->Base0["UnitsAttribute"] click Base0 "/animancer/api/Animancer.Units/UnitsAttribute" Base0-->Base1["PropertyAttribute"] Type["PerSecondAttribute"] class Type type-node

Syntax

[System.Diagnostics.Conditional(Strings.UnityEditor)]
public sealed class PerSecondAttribute : UnitsAttribute

Remarks

Documentation: Units Attribute

Attributes

Type Description
ConditionalAttribute

Constructors

Name Summary
PerSecondAttribute() Creates a new Animancer.Units.PerSecondAttribute.

Fields

Name Constant Value Summary
Multipliers
The multipliers to convert from the field's actual value to each unit type.
Inherited from UnitsAttribute
Suffixes
The unit suffix to display at the end of the value in each field.
Inherited from UnitsAttribute
UnitIndex
The index of the multiplier where the field stores its actual value.
Inherited from UnitsAttribute

Properties

Name Value Summary
DefaultValue float
The value to display if the actual value is System.Single.NaN.
Inherited from UnitsAttribute
DisabledText string
Optional text to display instead of the regular fields when the value is System.Single.NaN.
Inherited from UnitsAttribute
IsOptional bool
Should the field have a toggle to set its value to System.Single.NaN?
Inherited from UnitsAttribute
Rule Validate.Value
The validation rule applied to the value.
Inherited from UnitsAttribute