Version: 2020.3
语言: 中文

DisallowMultipleComponent

class in UnityEngine

切换到手册

描述

防止将相同类型(或子类型)的 MonoBehaviour 多次添加到 GameObject。