浏览代码

Enable and disable UI gameObjects, not the individual components.

/1.5-preview
Tim Mowrer 6 年前
当前提交
bb0702f8
共有 1 个文件被更改,包括 8 次插入6 次删除
  1. 14
      Assets/Scripts/ARWorldMapController.cs

14
Assets/Scripts/ARWorldMapController.cs


{
if (supported)
{
m_ErrorText.enabled = false;
m_SaveButton.enabled = true;
m_LoadButton.enabled = true;
m_ErrorText.gameObject.SetActive(false);
m_SaveButton.gameObject.SetActive(true);
m_LoadButton.gameObject.SetActive(true);
m_MappingStatus.gameObject.SetActive(true);
m_ErrorText.enabled = true;
m_SaveButton.enabled = false;
m_LoadButton.enabled = false;
m_ErrorText.gameObject.SetActive(true);
m_SaveButton.gameObject.SetActive(false);
m_LoadButton.gameObject.SetActive(false);
m_MappingStatus.gameObject.SetActive(false);
}
var sessionSubsystem = ARSubsystemManager.sessionSubsystem;

正在加载...
取消
保存