diff options
Diffstat (limited to 'Assets/Plugins/AdvancedInspector/Attributes/DontAllowSceneObject.cs')
-rw-r--r-- | Assets/Plugins/AdvancedInspector/Attributes/DontAllowSceneObject.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/DontAllowSceneObject.cs b/Assets/Plugins/AdvancedInspector/Attributes/DontAllowSceneObject.cs new file mode 100644 index 00000000..7c8506a6 --- /dev/null +++ b/Assets/Plugins/AdvancedInspector/Attributes/DontAllowSceneObject.cs @@ -0,0 +1,11 @@ +using System; + +namespace AdvancedInspector +{ + /// <summary> + /// Prevent Scene Object from being browsed in a Object property. + /// By default, scene and asset are displayed. + /// </summary> + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] + public class DontAllowSceneObjectAttribute : Attribute, IListAttribute { } +}
\ No newline at end of file |