Scripting API

DisallowMultipleComponent

attribute in UnityEngine · UnityEngine.CoreModule · inherits from Attribute

1 of 1 of Unity's membersUnity's documentation
In Tassix

Prevents adding the same component type twice to one GameObject.