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; | |
public sealed class Example : EditorWindow | |
{ | |
[MenuItem( "Tools/Hoge" )] | |
private static void Open() | |
{ | |
GetWindow<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; | |
[EditorWindowTitle | |
( | |
title = "ピカチュウ", | |
icon = "Assets/icon.png" | |
)] | |
public sealed class Example : EditorWindow | |
{ | |
[MenuItem( "Tools/Hoge" )] |
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; | |
namespace Kogane.Internal | |
{ | |
internal static class CircleCollider2DGizmo | |
{ | |
[DrawGizmo | |
( | |
GizmoType.NotInSelectionHierarchy | |
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.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
namespace Kogane.Internal | |
{ | |
internal static class BoxCollider2DGizmo | |
{ | |
[DrawGizmo | |
( |
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.Collections.Generic; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
namespace Kogane.Internal | |
{ | |
internal static class PolygonCollider2DGizmo | |
{ | |
[DrawGizmo |
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.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
[InitializeOnLoad] | |
internal static class Example | |
{ | |
static Example() | |
{ | |
SceneView.beforeSceneGui -= OnDuringSceneGui; |
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; | |
using UnityEngine.UIElements; | |
internal sealed class ExampleEditorWindow : EditorWindow | |
{ | |
private readonly struct ShortcutContext : IShortcutContext | |
{ | |
// この ShortcutContext は ExampleEditorWindow がフォーカスされている時だけ有効になる |
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] | |
internal static class Example | |
{ | |
static Example() | |
{ | |
PrefabUtility.prefabInstanceApplying += go => | |
{ |
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.Overlays; | |
using UnityEngine; | |
internal sealed class ExampleEditorWindow : | |
EditorWindow, | |
ISupportsOverlays | |
{ | |
[MenuItem( "Tools/ExampleEditorWindow" )] | |
private static void Open() |
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.Collections.Generic; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
namespace Kogane.Internal | |
{ | |
internal static class CompositeCollider2DGizmo | |
{ | |
[DrawGizmo |