[Prefix]

Attribute adds a text label before the field control.

Support Types

The attribute can be applied to any field type.

Parameters

Parameter Name
Arguments
Description

label

string

Text to display before the field.

Style

string

GUI style name for the label.

Examples

using RenownedGames.Apex;
using UnityEngine;

public class PrefixExample : MonoBehaviour
{
    [Prefix("$")]
    public int money;

    [Prefix("HP:")]
    public float health;

    [Prefix("v")]
    public string version;

    [Prefix("ID:")]
    public int id;
}