Edit

Bagikan melalui


PrefabAttribute Class

Definition

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.PropertyAttribute
PrefabAttribute
Attributes

Constructors

PrefabAttribute()

Applies to