Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

DisallowMultipleComponent

class in UnityEngine

/

Implemented in:UnityEngine.CoreModule

Description

Prevents MonoBehaviour of same type (or subtype) to be added more than once to a GameObject.

Did you find this page useful? Please give it a rating: