示例#1
0
        public void Show()
        {
            var openResult = CSSelectionTools.OpenSceneForReveal(Path);

            if (openResult.success)
            {
                var instanceId = CSAssetTools.GetMainAssetInstanceID(Path);
                EditorGUIUtility.PingObject(instanceId);
            }

            switch (SettingsKind)
            {
            case SceneSettingsKind.RenderSettings:
            case SceneSettingsKind.LightmapSettings:
                CSMenuTools.ShowSceneSettingsLighting();
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }