PrefabAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attribute used to ensure that a GameObject inspector slot only accepts prefabs.
public ref class PrefabAttribute sealed : UnityEngine::PropertyAttribute
[System.AttributeUsage(System.AttributeTargets.Field)]
public sealed class PrefabAttribute : UnityEngine.PropertyAttribute
[<System.AttributeUsage(System.AttributeTargets.Field)>]
type PrefabAttribute = class
inherit PropertyAttribute
Public NotInheritable Class PrefabAttribute
Inherits PropertyAttribute
- Inheritance
-
UnityEngine.PropertyAttributePrefabAttribute
- Attributes
Constructors
PrefabAttribute() |