浏览代码

Fixed obsolete onSceneGuiDelegate > duringSceneGui

/main
Thomas Iché 6 年前
当前提交
402e6693
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      Editor/GameViewLink/LinkGameView.cs
  2. 2
      Editor/SceneViewToolbar.cs

2
Editor/GameViewLink/LinkGameView.cs


[InitializeOnLoadMethod]
static void Initialize()
{
SceneView.onSceneGUIDelegate += Update;
SceneView.duringSceneGui += Update;
EditorApplication.playModeStateChanged += OnPlayModeChanged;
}

2
Editor/SceneViewToolbar.cs


[InitializeOnLoadMethod]
static void Initialize()
{
SceneView.onSceneGUIDelegate += OnSceneGUI;
SceneView.duringSceneGui += OnSceneGUI;
}
private static void OnSceneGUI(SceneView sceneView)

正在加载...
取消
保存