ShowForPrefabOnlyAttribute

ShowForPrefabOnlyAttribute is used on any field or property, and only shows properties from prefab assets inspector.

Use this to ensure the same value on a property, across all instances of a prefab.

namespace Sirenix.OdinInspector
{
[ObsoleteAttribute("Use HideInPrefabInstance or HideInPrefabAsset instead.", False)]
[AttributeUsageAttribute((AttributeTargets)384, AllowMultiple = False, Inherited = True)]
public class ShowForPrefabOnlyAttribute : Attribute
}

Requirements

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

See Also

Example

The following example shows how ShowForPrefabOnlyAttribute is used on properties.

public class MyComponent
{
	[ShowForPrefabOnlyAttribute]
	public int MyInt;
}