[Suffix]

Attribute adds a text label after the field control.

Support Types

The attribute can be applied to any field type.

Parameters

Parameter Name
Arguments
Description

label

string

Text to display after the field.

Style

string

Name of style of label.

Alignment

TextAnchor

Label alignment of style.

Mute

bool

Mute label.

Examples

using RenownedGames.Apex;
using UnityEngine;

public class SuffixExample : MonoBehaviour
{
    [Suffix("%")]
    public float percentage;

    [Suffix("px")]
    public float pixelSize;

    [Suffix("ms")]
    public float milliseconds;

    [Suffix("sec", Mute = true)]
    public float seconds;

    [Suffix("units", Alignment = TextAnchor.MiddleRight)]
    public float customUnits;
}