Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

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

Inheritance

Inherited Members