TextStudioRangeAttribute
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]public sealed class TextStudioRangeAttribute : PropertyAttributeCompact ranged float attribute used by Text Studio effect authoring. Renders as a slider with optional snap increment and unit suffix.
Constructors
Section titled “Constructors”
TextStudioRangeAttribute(float, float, float, string)
Section titled “TextStudioRangeAttribute(float, float, float, string)”public TextStudioRangeAttribute(float min, float max, float snap = 0, string suffix = null)Declares an authoring range, optional snap interval, unit suffix, and overflow policy.
Parameters
| Name | Type |
|---|---|
min |
System.Single |
max |
System.Single |
snap |
System.Single |
suffix |
System.String |
Properties
Section titled “Properties”
public float Min { get; }Returns
System.Single
public float Max { get; }Returns
System.Single
public float Snap { get; }Returns
System.Single
Suffix
Section titled “Suffix”public string Suffix { get; }Returns
System.String