Skip to content

Suffix

[Suffix] attribute allow to add suffix text to property.


Support Types

Any types.


Parameters

Name Description
Text Suffix text.
Muted Muted text.

Examples

    [Suffix("Some text")]
    public float floatValue;

    [Suffix("Some text", true)]
    public int intValue;
Note

Make sure that you have added ApexInspector namespace in your script, to get access to all attributes.

using ApexInspector;


Demo

using ApexInspector;
using UnityEngine;

public class ExampleComponent : MonoBehaviour
{
    [Suffix("m/s")]
    public float runSpeed;

    [Suffix("m/s", true)]
    public int walkSpeed;
}

Static-demo

Static demo