CommonUI接入指南

1、创建一个VLabCommonUI对象,并进行初始化Init()。

vLabCommonUI = new VLabCommonUI(containerBuilder);

VLabPlayerView3D.Register.Init();

yield return vLabCommonUI.Init(ViewType.TDPlayer, currentCommonUIType, isNewGuide, languageCode, softKeyboardOpenMode);

VLabPlayerView3D.Register.Init()为播放器制作的View初始化,其他平台如果有自定义的View,也需要进行相应的初始化。比如编辑器:

 VLabPlayerView3D.Register.Init();
 VLabEditorView3D.Register.Init();
 yield return _vLabCommonUI.Init(ViewType.TDEditor, currentCommonUIType, isNewGuide, languageCode, softKeyboardOpenMode);

2、在退出播放颗粒时需调用Release()

 if (vLabCommonUI != null)     
 {

    vLabCommonUI.Release();

    vLabCommonUI = null;

 }

3、因资源较大,没有上传到nuget包里,需手动拷贝CommonUI的AssetBundle到项目的StreamingAssets下
vlab-playercore-commonui\Configs\StreamingAssets\VLabCommonUI拷贝到
U3DProject\Assets\StreamingAssets\VLabCommonUI