-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
6061d50
commit d123ab1
Showing
5 changed files
with
117 additions
and
45 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
BluConsole/Assets/Plugins/BluConsole/Scripts/Core/UnityLoggerApi/BluInternalEditorUtility.cs
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,29 @@ | ||
using System.Reflection; | ||
|
||
|
||
namespace BluConsole.Core.UnityLoggerApi | ||
{ | ||
|
||
public static class BluInternalEditorUtility | ||
{ | ||
|
||
public static void OpenEditorConsole() | ||
{ | ||
var method = GetMethod("OpenEditorConsole"); | ||
method.Invoke(null, null); | ||
} | ||
|
||
public static void OpenPlayerConsole() | ||
{ | ||
var method = GetMethod("OpenPlayerConsole"); | ||
method.Invoke(null, null); | ||
} | ||
|
||
private static MethodInfo GetMethod(string key) | ||
{ | ||
return ReflectionCache.GetMethod(key, UnityClassType.InternalEditorUtility); | ||
} | ||
|
||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
...le/Assets/Plugins/BluConsole/Scripts/Core/UnityLoggerApi/BluInternalEditorUtility.cs.meta
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
26 changes: 25 additions & 1 deletion
26
BluConsole/Assets/Plugins/BluConsole/Scripts/Core/UnityLoggerApi/UnityLoggerServer.cs
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
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