2021-01-31から1日間の記事一覧
参考サイト様 Starting in 2020.2.0b2 the process of converting .NET assemblies into C++ files is multi-threaded. For 6-8 core machines the conversion process will see roughly a 60-65% decrease in conversion time. On a 64 core machine conver…
概要 Unity メニューの「Edit > Preferences...」を選択して 左メニューの「General」を選択して「Auto Refresh」をオンにして スクリプトを編集すると反映されるようになる
概要 EntryPointNotFoundException .so を使用している箇所で EntryPointNotFoundException が発生することがあった EntryPointNotFoundException は該当するメソッドが見つからない時に発生する例外 エラーが出ている .so は .unitypackage でインポートし…
概要 "files.autoGuessEncoding": true settings.json に上記の記述を追加する
概要 del /f /q /s Library > null rd /q /s Library コマンドプロンプトから上記のコマンドを実行すると早く消せるかも? 参考サイト様
概要 command not found xcodebuild: error: Unknown build action xcodebuild 時に上記のエラーが発生する状況に遭遇した xcodebuild を実行する .sh の改行コードは「CRLF」になっていることが原因だった .sh の改行コードを「LF」で保存したら正常に動作…
概要
概要 Hierarchy でゲームオブジェクトを作成した時に名前変更モードに入るようになった Hierarchy のタブを右クリックして「Rename New Objects」をオフにすると 名前変更モードに入らないようになります
概要 using UnityEditor; using UnityEditor.PackageManager; using UnityEngine; [InitializeOnLoad] public static class Example { static Example() { void Handle( PackageRegistrationEventArgs args ) { foreach ( var info in args.added ) { Debug.…
概要 using UnityEditor; using UnityEngine; public static class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { Debug.Log( Selection.count ); } }
概要 using UnityEditor; using UnityEngine; public static class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { var position = new Rect( 0, 0, 960, 1280 ); EditorGUIUtility.SetMainWindowPosition( position ); } }
概要 using UnityEditor; using UnityEngine; public static class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { var path = "Assets/Prefab.prefab"; // 従来:string 型で GUID を取得 var guidString = AssetDatabase.AssetPathTo…
概要 using UnityEditor; using UnityEngine; [InitializeOnLoad] public static class Example { static Example() { AssetDatabase.cacheServerConnectionChanged += _ => Debug.Log( "ピカチュウ" ); } } 参考サイト様
概要 using UnityEditor; public static class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { AssetDatabase.CloseCacheServerConnection(); } }
概要 Project ウィンドウの「Create」からプレハブを作成できるようになった
概要 C:\android-ndk-r16b\ndk-build.cmd echo "完了" pause ndk-build が完了した後に、完了したことを画面に出力した状態で 処理を止めようと思ったら、ndk-build 完了直後に 自動でコマンドプロンプトが終了してしまった call C:\android-ndk-r16b\ndk-bu…
概要 エディター用スクリプトは、EditorGUIUtility.Load 関数を使用して要求に応じて読み込まれるアセットファイルを使用します。この関数は、Editor Default Resources と呼ばれるフォルダー内のアセットファイルを検索します。 Editor Default Resources …