DisallowMultipleComponent
Prevents MonoBehaviour of same type (or subtype) to be added more than once to a GameObject.
阅读时间3 分钟最后更新于 1 个月前
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Class, Inherited = false)]public sealed class DisallowMultipleComponent : Attribute