浏览代码

Fixed LinkGameView not working in play mode when excluding VirtualCameraManager

/main
Thomas ICHÉ 5 年前
当前提交
a82837e7
共有 3 个文件被更改,包括 7 次插入2 次删除
  1. 2
      CHANGELOG.md
  2. 2
      Editor/GameViewLink/LinkGameView.cs
  3. 5
      Runtime/Managers/Manager.cs

2
CHANGELOG.md


#### Fixed
*
* Fixed LinkGameView not working in play mode when excluding VirtualCameraManager.
## 2019.1.2

2
Editor/GameViewLink/LinkGameView.cs


}
// If we have a VirtualCameraManager, manage its state here
if(Application.isPlaying && Manager.Get<VirtualCameraManager>() != null)
if(Application.isPlaying && Manager.Has<VirtualCameraManager>())
{
var camera = Manager.Get<VirtualCameraManager>().gameObject;

5
Runtime/Managers/Manager.cs


}
}
public static bool Has<T>() where T:Manager
{
return(s_Managers.ContainsKey(typeof(T)));
}
static readonly Type[] kAllManagerTypes = GetAllManagerTypes();
[RuntimeInitializeOnLoadMethod]

正在加载...
取消
保存