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.Build.Reporting; | |
| public class Example | |
| { | |
| [MenuItem( "Tools/Hoge" )] | |
| private static void Hoge() | |
| { | |
| var latestReport = BuildReport.GetLatestReport(); |
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; | |
| [InitializeOnLoad] | |
| public static class Example | |
| { | |
| static Example() | |
| { | |
| BuildPlayerWindow.RegisterGetBuildPlayerOptionsHandler( OnGetBuildPlayerOptions ); | |
| } |
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 ColorExtensionMethods | |
| { | |
| public static Color Brighten | |
| ( | |
| this Color color, | |
| float amount |
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; | |
| namespace Kogane | |
| { | |
| public static class IReadOnlyListExtensionMethods | |
| { | |
| public static T[] ShiftRight<T> | |
| ( | |
| this IReadOnlyList<T> self, | |
| int shiftCount |
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 | |
| { | |
| [InitializeOnLoad] | |
| internal static class MeshRendererOrderInLayerPropertyField | |
| { | |
| static MeshRendererOrderInLayerPropertyField() | |
| { |
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 | |
| { | |
| [InitializeOnLoad] | |
| internal static class LineRendererConstantColorPropertyField | |
| { | |
| static LineRendererConstantColorPropertyField() | |
| { |
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 | |
| ( |