private static void hierarchyWindowChanged() { #if UNITY_5_3 || UNITY_5_4 || UNITY_5_5 if (currentScene != EditorSceneManager.GetActiveScene()) { #else if (currentScene != EditorApplication.currentScene) { #endif if (Constants.PREFAB_AUTOLOAD) { EditorHelper.AddRTVoice(); } #if UNITY_5_3 || UNITY_5_4 || UNITY_5_5 currentScene = EditorSceneManager.GetActiveScene(); #else currentScene = EditorApplication.currentScene; #endif } } #endregion }
private static void AddRTVoice() { EditorHelper.AddRTVoice(); }