DisallowMultipleComponent
Prevents MonoBehaviour of same type (or subtype) to be added more than once to a GameObject.
Read time 3 minutesLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Class, Inherited = false)]public sealed class DisallowMultipleComponent : Attribute