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 |
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 UnityEngine; | |
namespace Kogane | |
{ | |
public static class TransformExtensionMethods | |
{ | |
public static Vector3 TransformPointUnscaled | |
( | |
this Transform self, | |
in Vector3 position |
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 System.IO; | |
using UnityEditor; | |
using UnityEngine; | |
namespace Kogane.Internal | |
{ | |
internal sealed class MergedAndroidManifestPathWindow : EditorWindow | |
{ | |
private Vector2 m_scrollPosition; |
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() | |
{ | |
using var _ = new AssetDatabase.AssetEditingScope(); | |
// ... |