編集

次の方法で共有


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