private void CreateAndShowNewView() { var viewType = _FrameController.GetNextViewType(); var switchType = _FrameController.GetNextViewSwitchType(); if (_CurrentView != null) { _CurrentView.Deactivate(); } _CurrentView = _ViewManager.CreateView(viewType); _CurrentView.Activate(switchType); }
public void LoadView() { uiRoot = GameObject.FindGameObjectWithTag("UIROOT"); uiRoot.AddComponent <DontDestroy>(); uiCanvas = uiRoot.GetComponentInChildren <Canvas>(); Object[] views = Resources.LoadAll("View"); foreach (var view in views) { U3DView monoView = viewMgr.CreateView <U3DView>(view); AddToUIRoot(monoView.gameObject); } }
public IView CreateView(string viewId, object payload = null) { return(IViewManager.CreateView(viewId, payload)); }
public void CreateView(string viewName, string viewDefinition, Transaction transaction) { _viewManager.CreateView(viewName, viewDefinition, transaction); }