Skip to content

TextStudioRangeAttribute

ClassTextStudioTextStudio
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class TextStudioRangeAttribute : PropertyAttribute

Compact ranged float attribute used by Text Studio effect authoring. Renders as a slider with optional snap increment and unit suffix.

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

public float Min { get; }

Returns

System.Single

public float Max { get; }

Returns

System.Single

public float Snap { get; }

Returns

System.Single

public string Suffix { get; }

Returns

System.String