-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
103 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Script : EventEditorSetting.cs | ||
// Script : UEventEditorSetting.cs | ||
// Info : 事件编辑器配置类 | ||
// Author : ls9512 2021 | ||
// E-mail : [email protected] | ||
|
@@ -12,25 +12,25 @@ | |
|
||
namespace Aya.Events | ||
{ | ||
[CreateAssetMenu(menuName = "UEvent/Event Editor Setting", fileName = "EventEditorSetting")] | ||
public class EventEditorSetting : ScriptableObject | ||
[CreateAssetMenu(menuName = "UEvent/Event Editor Setting", fileName = "UEventEditorSetting")] | ||
public class UEventEditorSetting : ScriptableObject | ||
{ | ||
#region Instance | ||
|
||
public static EventEditorSetting Ins | ||
public static UEventEditorSetting Ins | ||
{ | ||
get | ||
{ | ||
if (Instance == null) | ||
{ | ||
Instance = FindAsset<EventEditorSetting>(); | ||
Instance = FindAsset<UEventEditorSetting>(); | ||
} | ||
|
||
return Instance; | ||
} | ||
} | ||
|
||
protected static EventEditorSetting Instance; | ||
protected static UEventEditorSetting Instance; | ||
|
||
internal static T FindAsset<T>() where T : Object | ||
{ | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#if UNITY_EDITOR | ||
using UnityEditor; | ||
|
||
namespace Aya.Events | ||
{ | ||
public partial class UEventEditorMenu | ||
{ | ||
[MenuItem("Tools/Aya Game/UEvent/Event Monitor", false, 0)] | ||
public static void OpenEventMonitor() | ||
{ | ||
EventMonitor.ShowWindow(); | ||
} | ||
|
||
[MenuItem("Tools/Aya Game/UEvent/Editor Setting", false, 1000)] | ||
public static void OpenRuntimeSetting() | ||
{ | ||
SettingsService.OpenProjectSettings("Aya Game/UEvent Editor"); | ||
} | ||
} | ||
} | ||
#endif |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#if UNITY_EDITOR | ||
using Aya.Events; | ||
using UnityEditor; | ||
|
||
namespace Aya.TweenPro | ||
{ | ||
public static class UEventEditorSettingProvider | ||
{ | ||
#region Project Setting | ||
|
||
[SettingsProvider] | ||
public static SettingsProvider GetEditorSetting() | ||
{ | ||
var provider = AssetSettingsProvider.CreateProviderFromObject("Aya Game/UEvent Editor", UEventEditorSetting.Ins); | ||
provider.keywords = SettingsProvider.GetSearchKeywordsFromSerializedObject(new SerializedObject(UEventEditorSetting.Ins)); | ||
return provider; | ||
} | ||
|
||
#endregion | ||
} | ||
} | ||
|
||
#endif |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters