Version 3.3.1.2

Odin has a dedicated attribute overview with examples

ToggleLeftAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter | AttributeTargets.All, AllowMultiple = true, Inherited = true)]
[Conditional("UNITY_EDITOR")]
public sealed class ToggleLeftAttribute : Attribute, _Attribute

Draws the checkbox before the label instead of after.

Inheritance
  • System.Object
  • System.Attribute
  • ToggleLeftAttribute
Remarks

ToggleLeftAttribute can be used an all fields and properties of type boolean

Example
public class MyComponent : MonoBehaviour
{
	[ToggleLeft]
	public bool MyBoolean;
}

Constructors

ToggleLeftAttribute()
public ToggleLeftAttribute()