This file contains 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 | |
{ | |
/// <summary> | |
/// Android 端末の「設定 > システム > 日付と時刻」の「日時を自動的に設定」と「タイムゾーンを自動的に設定」の設定値を取得できるクラス | |
/// </summary> | |
public static class AndroidDeviceDateTimeChecker | |
{ | |
//================================================================================ |
This file contains 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
#if UNITY_EDITOR_OSX | |
#else | |
using UnityEditor; | |
using UnityEditor.ShortcutManagement; | |
using UnityEngine; | |
namespace Kogane.Internal | |
{ | |
/// <summary> |
This file contains 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.Runtime.InteropServices; | |
using UnityEditor; | |
internal static class DarkMode | |
{ | |
[InitializeOnLoadMethod] | |
[DllImport( "【ここに UnityEditorDarkMode.dll のパスを書く】", EntryPoint = "DllMain" )] | |
public static extern void DllMain(); | |
} |
This file contains 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 UnityEditor; | |
using UnityEngine; | |
namespace Kogane.Internal | |
{ | |
/// <summary> | |
/// JetBrains Rider のように Ctrl + Alt + Shift + ↑↓ でゲームオブジェクトの順番を移動できるエディタ拡張 | |
/// </summary> | |
[InitializeOnLoad] |
This file contains 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 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 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 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 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 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() | |
{ |
NewerOlder