您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

21 行
566 B

using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine.SceneManagement;
public class LoadPackageSceneContext : Editor
{
[MenuItem("Assets/Load Package Scene", false, -10)]
private static void LoadPackageScene()
{
var path = AssetDatabase.GetAssetPath(Selection.activeObject);
EditorSceneManager.OpenScene(path);
}
[MenuItem("Assets/Load Package Scene", true)]
private static bool ValidatePackageScene()
{
return Selection.activeObject is SceneAsset;
}
}