This file contains hidden or 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
using UnityEditor; | |
public static class Example | |
{ | |
[MenuItem( "Tools/Hoge" )] | |
private static void Hoge() | |
{ | |
try | |
{ | |
AssetDatabase.StartAssetEditing(); |
This file contains hidden or 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
using UnityEditor; | |
using UnityEngine; | |
[InitializeOnLoad] | |
public sealed class Example : EditorWindow | |
{ | |
private BuildPlayerOptions m_buildPlayerOptions; | |
static Example() | |
{ |
This file contains hidden or 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
using UnityEditor; | |
using UnityEngine; | |
[InitializeOnLoad] | |
public static class Example | |
{ | |
static Example() | |
{ | |
BuildPlayerWindow.RegisterBuildPlayerHandler( OnBuildPlayer ); | |
} |
This file contains hidden or 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
using UnityEditor; | |
using UnityEngine; | |
[InitializeOnLoad] | |
public static class Example | |
{ | |
static Example() | |
{ | |
BuildPlayerWindow.RegisterBuildPlayerHandler( OnBuildPlayer ); | |
} |
This file contains hidden or 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
using TMPro; | |
using UnityEngine; | |
public class Example : MonoBehaviour | |
{ | |
private void Awake() | |
{ | |
TMP_Text.OnMissingCharacter += OnMissingCharacter; | |
static void OnMissingCharacter |
This file contains hidden or 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
using UnityEditor; | |
using UnityEngine; | |
[InitializeOnLoad] | |
public static class Example | |
{ | |
static Example() | |
{ | |
EditorApplication.updateMainWindowTitle -= OnUpdate; | |
EditorApplication.updateMainWindowTitle += OnUpdate; |
This file contains hidden or 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
using TMPro; | |
using UnityEngine; | |
public class Example : MonoBehaviour | |
{ | |
[SerializeField] private TMP_FontAsset m_tmpFontAsset; | |
private void Awake() | |
{ | |
TMP_Text.OnFontAssetRequest += OnFontAssetRequest; |
This file contains hidden or 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
using System; | |
using UnityEngine; | |
public class Example : MonoBehaviour | |
{ | |
private void Awake() | |
{ | |
Application.memoryUsageChanged += OnChanged; | |
void OnChanged( in ApplicationMemoryUsageChange usage ) |
This file contains hidden or 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
using UnityEditor; | |
using UnityEditor.ShortcutManagement; | |
using UnityEngine; | |
namespace Kogane.Internal | |
{ | |
internal static class UndoRedoShortcuts | |
{ | |
[Shortcut( "Kogane/Undo Redo Shortcuts/Undo", KeyCode.Mouse3 )] | |
private static void PerformUndo() |
This file contains hidden or 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
using GooglePlayServices; | |
using UnityEditor; | |
using UnityEngine; | |
internal static class Example | |
{ | |
[MenuItem( "Tools/Hoge" )] | |
private static void Hoge() | |
{ | |
PlayServicesResolver.Resolve |