public static AiukUIInteractiveData GetUiInteractiveData(AiukUIControlType type, PointerEventData eventData, string eventTypeStr) { var data = new AiukUIInteractiveData(); data.Init(eventData, eventTypeStr); return(data); }
/// <summary> /// 获取指定类型UI控件的对象池根游戏对象。 /// </summary> /// <param name="type"></param> /// <returns></returns> private static GameObject GetControlTypeRoot(AiukUIControlType type) { var typeRootName = "aiuk_" + type + "_pool"; var targetRoot = GameObject.Find(typeRootName); if (targetRoot != null) { return(targetRoot); } targetRoot = new GameObject(typeRootName); targetRoot.transform.SetParent(UIControlPoolRoot.transform); return(targetRoot); }