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.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答