文档

Unity Engine

Unity Engine

DisallowMultipleComponent

Prevents MonoBehaviour of same type (or subtype) to be added more than once to a GameObject.
阅读时间3 分钟最后更新于 1 个月前

Definition

[AttributeUsage(AttributeTargets.Class, Inherited = false)]public sealed class DisallowMultipleComponent : Attribute

Inheritance

Inherited Members