Skip to content

Toggle Left

[ToggleLeft] attribute draw toggle on a left side of the field.


Support Types

  • Boolean

Parameters

No parameters


Examples

[ToggleLeft]
public bool toggle;
Note
  1. 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
{
    [ToggleLeft]
    public bool toggle;
}

Live-demo

Live demo