2020-05-07から1日間の記事一覧
概要 using UnityEditor; public static class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { EditorSettings.enterPlayModeOptionsEnabled = !EditorSettings.enterPlayModeOptionsEnabled; } }
概要 using UnityEditor; public static class Example { [MenuItem( "Tools/Audio" )] private static void OpenAudio() { SettingsService.OpenProjectSettings( "Project/Audio" ); } [MenuItem( "Tools/Editor" )] private static void OpenEditor() { S…
概要 using UnityEditor; public static class Example { [MenuItem( "Tools/2DAnimation" )] private static void Open2DAnimation() { SettingsService.OpenUserPreferences( "Preferences/2D/Animation" ); } [MenuItem( "Tools/AnalysisProfiler" )] pri…
概要 using UnityEditor; using UnityEditor.Experimental.SceneManagement; using UnityEngine; public static class Example { [MenuItem( "Tools/Hoge" )] public static void Hoge() { var isPrefabMode = PrefabStageUtility.GetCurrentPrefabStage() !…
はじめに この記事では MasterMemory の基本的な使い方を紹介していきます 目次 はじめに 目次 検証環境 必要なファイルの入手 .unitypackage のインポート マスタを管理するクラスの準備 MasterMemory のジェネレータを実行 MessagePack のジェネレータを実…
概要 using UnityEditor; using UnityEditor.iOS.Xcode; public static class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { var path = "iOS"; var projectPath = PBXProject.GetPBXProjectPath( path ); var project = new PBXProje…
概要 Component GUI Layer in Main Camera for Scene XXXX.unity is no longer available. It will be removed after you edit this GameObject and save the Scene. アプリビルド時などに上記のエラーが出力される場合は カメラにアタッチされている「Flare…
概要 Mac で Unity プロジェクトを開いた時や Switch Platform した時に Mac が強制終了する現象に遭遇した Editor: Metal support disabled, skipping device initialization Unity の Console ウィンドウを見てみると上記のようなメッセージが表示されてい…