multiple xr toolkit package
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EditorHandling.cs 523B

1234567891011121314151617
  1. using UnityEditor;
  2. using UnityEngine.SceneManagement;
  3. [InitializeOnLoad]
  4. public static class EditorHandling
  5. {
  6. static EditorHandling()
  7. {
  8. UnityEditor.SceneManagement.EditorSceneManager.sceneOpened += SceneOpenedCallback;
  9. }
  10. static void SceneOpenedCallback( Scene scene, UnityEditor.SceneManagement.OpenSceneMode mode)
  11. {
  12. // refresh window when scene is opened to display content images correctly
  13. if (null != VRCSdkControlPanel.window) VRCSdkControlPanel.window.Reset();
  14. }
  15. }