public GameObject CreateUIView( int context = 0, GameObject parent = null, UILayer uiLayer = UILayer.Common, Vector3 localPosition = new Vector3(), bool isFullScreen = true ) { string resPath = GetResourcePath(); if (!string.IsNullOrEmpty(resPath)) { uiNode = UITools.AttachUIView <UIBaseView>(resPath, this, parent, uiLayer, localPosition, isFullScreen); if (uiNode != null) { return(uiNode.gameObject); } } return(null); }