Version 2.1.0.0

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)]
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()

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.