public object mTypeInstance; //要绑定的类型实例 public static UIElementData Create(GameObject pRootGo, string pName, string pPath, string pTypeName) { if (pRootGo == null) { return(null); } UIElementData tData = new UIElementData(); tData.mRootGo = pRootGo; tData.mVarName = pName; tData.mPath = pPath; tData.mTypeName = pTypeName; tData.mGo = tData.GetGo(); tData.mTypeInstance = tData.GetTypeInstance(); return(tData); }