Exemplo n.º 1
0
        private Task <GameObject> ImportBlenderAsset(AssetBankItem item)
        {
            requestedBlenderImportName = item.assetName;
            blenderImportTask          = new TaskCompletionSource <GameObject>();
            BlenderBankInfo info = new BlenderBankInfo {
                action = BlenderBankAction.ImportRequest, name = item.assetName
            };

            MixerClient.Instance.SendBlenderBank(info);
            return(blenderImportTask.Task);
        }
Exemplo n.º 2
0
        public void ListImportableObjects()
        {
            assetBank = ToolsManager.GetTool("AssetBank").GetComponent <AssetBank>();
            // Add Blender asset bank assets
            GlobalState.blenderBankImportObjectEvent.AddListener(OnBlenderBankObjectImported);
            GlobalState.blenderBankListEvent.AddListener(OnBlenderBank);
            BlenderBankInfo info = new BlenderBankInfo {
                action = BlenderBankAction.ListRequest
            };

            MixerClient.Instance.SendBlenderBank(info);
        }
Exemplo n.º 3
0
        public void SendBlenderBank(BlenderBankInfo info)
        {
            NetCommand command = MixerUtils.BuildSendBlenderBank(info);

            AddCommand(command);
        }