ShowInInspectorAttribute

ShowInInspector is used on any property, and shows the value in the inspector.

namespace Sirenix.OdinInspector
{
[AttributeUsageAttribute((AttributeTargets)448, AllowMultiple = False, Inherited = False)]
public class ShowInInspectorAttribute : Attribute
}

Requirements

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector
Version: 1.0.5.0

Example

The following example shows how ShowInInspector is used to show properties in the inspector, that otherwise wouldn't.

public class MyComponent : MonoBehaviour
{
	[ShowInInspector]
	private int myField;

	[ShowInInspector]
	public int MyProperty { get; set; }
}