因为MonoBehaviour不能New实例化 所以先创建空GameObject后在添加脚本即可 GameObject tGO = new GameObject("tGO"); tGO.AddComponent<T>();