home打开关闭逻辑修改调整提交
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -91,10 +92,15 @@ namespace NBF
|
||||
return;
|
||||
}
|
||||
|
||||
// 读取 Build Settings 中 “Scenes In Build” 勾选的场景
|
||||
var scenes = EditorBuildSettings.scenes
|
||||
.Where(s => s.enabled)
|
||||
.Select(s => s.path)
|
||||
.ToArray();
|
||||
var buildOptions = BuildOptions.CompressWithLz4;
|
||||
BuildPlayerOptions buildPlayerOptions = new BuildPlayerOptions()
|
||||
{
|
||||
scenes = new[] { "Assets/Scenes/StartUp.unity" },//Assets/Scenes/StartUp.unity
|
||||
scenes = scenes, //new[] { "Assets/Scenes/StartUp.unity" }, //Assets/Scenes/StartUp.unity
|
||||
locationPathName = location,
|
||||
options = buildOptions,
|
||||
target = activeTarget,
|
||||
|
||||
26
Assets/Scripts/Editor/Test/UIBlurEditor.cs
Normal file
26
Assets/Scripts/Editor/Test/UIBlurEditor.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[CustomEditor(typeof(UIBlur))]
|
||||
public class UIBlurEditor : Editor
|
||||
{
|
||||
private UIBlur _target;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
_target = target as UIBlur;
|
||||
// lookAtPoint = serializedObject.FindProperty("lookAtPoint");
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
base.OnInspectorGUI();
|
||||
if (GUILayout.Button("Blur"))
|
||||
{
|
||||
_target.CaptureAndBlurOnce();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Editor/Test/UIBlurEditor.cs.meta
Normal file
3
Assets/Scripts/Editor/Test/UIBlurEditor.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ebaa0f203943458688dac255c2ea6441
|
||||
timeCreated: 1770124598
|
||||
Reference in New Issue
Block a user