Пример #1
0
        public async Task <TView> Load <TView>(UIInfoAttribute info) where TView : UIView
        {
            TView prefab = await assets.Load <TView>(info.Path);

            Transform root = GetRoot(info.RootType).Transform;
            TView     view = Object.Instantiate(prefab, root);

            return(view);
        }