Skip to content

Foldout

[Foldout] attribute used for layout properties in expandable foldout.


Support Types

Any types.


Parameters

Parameter Name Description
Title Title of foldout

Examples

public float value1;

[Foldout("Some Title")]
public float value2;

[Foldout("Some Title")]
public float value3;
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
{
    public float value1;

    [Foldout("Some Title")]
    public float value2;

    [Foldout("Some Title")]
    public float value3;
}

Live-demo

Live demo