Skip to content

Prefix

[Prefix] attribute allow to add prefix text to property.


Support Types

Any types.


Parameters

Name Description
Text Prefix text.
Before Property Set true to draw prefix before property field.

Examples

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

    [Prefix("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
{
    [Prefix("Some text")]
    public float floatValue;

    [Prefix("[Some text]", true)]
    public int intValue;
}

Static-demo

Static demo