Skip to content

Instantly share code, notes, and snippets.

using UnityEditor;
public static class Example
{
[MenuItem( "Tools/Hoge" )]
private static void Hoge()
{
try
{
AssetDatabase.StartAssetEditing();
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
public sealed class Example : EditorWindow
{
private BuildPlayerOptions m_buildPlayerOptions;
static Example()
{
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
public static class Example
{
static Example()
{
BuildPlayerWindow.RegisterBuildPlayerHandler( OnBuildPlayer );
}
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
public static class Example
{
static Example()
{
BuildPlayerWindow.RegisterBuildPlayerHandler( OnBuildPlayer );
}
using TMPro;
using UnityEngine;
public class Example : MonoBehaviour
{
private void Awake()
{
TMP_Text.OnMissingCharacter += OnMissingCharacter;
static void OnMissingCharacter
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
public static class Example
{
static Example()
{
EditorApplication.updateMainWindowTitle -= OnUpdate;
EditorApplication.updateMainWindowTitle += OnUpdate;
using TMPro;
using UnityEngine;
public class Example : MonoBehaviour
{
[SerializeField] private TMP_FontAsset m_tmpFontAsset;
private void Awake()
{
TMP_Text.OnFontAssetRequest += OnFontAssetRequest;
using System;
using UnityEngine;
public class Example : MonoBehaviour
{
private void Awake()
{
Application.memoryUsageChanged += OnChanged;
void OnChanged( in ApplicationMemoryUsageChange usage )
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()
using GooglePlayServices;
using UnityEditor;
using UnityEngine;
internal static class Example
{
[MenuItem( "Tools/Hoge" )]
private static void Hoge()
{
PlayServicesResolver.Resolve