ShowInInspectorAttribute

ShowInInspector is used on any member, and shows the value in the inspector. Note that the value being shown due to this attribute DOES NOT mean that the value is being serialized.

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

Requirements

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector
Version: 2.0.0.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; }
}