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; | |
using UnityEditor; | |
using System.Linq; | |
public class ObjectDeplicate { | |
[MenuItem("Edit/DummyDeplicate %d", false, -1)] | |
static void CreateEmptyObject() { | |
var select = Selection.objects; | |
// Projectのオブジェクトのコピー |
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; | |
using UnityEditor; | |
public class StopExcuteIfHotReloading { | |
[RuntimeInitializeOnLoadMethod] | |
static void StartUp() { | |
EditorApplication.update += EditorUpdate; | |
} | |
static void EditorUpdate() { | |
if (EditorApplication.isPlaying && EditorApplication.isCompiling) { |
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; | |
using UnityEditor; | |
using System; | |
namespace TransformEx | |
{ | |
/// <summary> | |
/// 一括表示を行う場合の設定項目 | |
/// </summary> | |
internal interface ISetAllMode |
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 UnityEngine; | |
using UnityEditor; | |
using UnityEditor.EditorTools; | |
using System.IO; | |
using UnityEditor.Build.Reporting; | |
using System.Linq; | |
// 初回起動のみ実行、初回のツールバー設定で起動しないように仕組む | |
class PlatformToolInitializer : ScriptableSingleton<PlatformToolInitializer> |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
class ShapePropertyNameAttribute : PropertyAttribute | |
{ | |
#if UNITY_EDITOR | |
[CustomPropertyDrawer(typeof(ShapePropertyNameAttribute))] | |
class FieldNameDrawer : PropertyDrawer |
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 UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
class SceneAttribute : PropertyAttribute | |
{ | |
} |
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
// GUIStyleの名前部分は選択してコピーができます。 | |
// キー入力でウィンドウの操作が可能です。 | |
// 左右キー:ページの移動 | |
// 上下キー:スクロールの移動 | |
// Enter:検索にフォーカスを移動 | |
// Shift + 左右キー:GUIStyleの表示数を変更 | |
// Ctrl + 左右キー:GUIStyleの表示分割数を変更 | |
// Shift + Tab:Toolbarの切り替え |
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
public class ApkBuildAndInstall | |
{ | |
[MenuItem("ビルド/APK BuildInstall #b")] | |
static void BuildInstallApk() | |
{ | |
var path = System.Environment.CurrentDirectory; | |
var fullPath = Path.Combine(path, "test.apk"); | |
var levels = EditorBuildSettings.scenes.Where(x => x.enabled).Select(x => x.path).ToArray(); | |
PlayerSettings.SetScriptingBackend(EditorUserBuildSettings.selectedBuildTargetGroup, ScriptingImplementation.Mono2x); |
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
public class AABBuildAndInstall{ | |
[MenuItem("ビルド/AAB BuildInstall #&b")] | |
static void BuildInstallAAB() | |
{ | |
var path = System.Environment.CurrentDirectory; | |
var fullPath = Path.Combine(path, AABName); | |
var levels = EditorBuildSettings.scenes.Where(x => x.enabled).Select(x => x.path).ToArray(); | |
PlayerSettings.SetScriptingBackend(EditorUserBuildSettings.selectedBuildTargetGroup, ScriptingImplementation.IL2CPP); | |
PlayerSettings.Android.targetArchitectures = AndroidArchitecture.All; |
OlderNewer