2025-02-01から1ヶ月間の記事一覧
はじめに M4 Pro Mac mini を購入したので、M1 Max MacBook Pro と速度を比較した。 目次 はじめに 目次 検証環境 マシンスペック 計測結果 計測方法 Geekbench 6 リコンパイル時間 Android ビルド時間 iOS ビルド時間 アセットバンドルビルド時間 雑感 検証…
概要 上記のパッケージを Unity プロジェクトに追加することで iOS / Android の発熱やバッテリーの情報を取得できるようになります。 使用例 Android using MobileSupport; using TMPro; using UnityEngine; internal sealed class Example : MonoBehaviour…
概要 % python -c "import aifc; print('aifc module is available')" Traceback (most recent call last): File "<string>", line 1, in <module> import aifc; print('aifc module is available') ^^^^^^^^^^^ ModuleNotFoundError: No module named 'aifc' Python 3.13 で</module></string>…
概要 zsh: command not found: pip 新しく購入した Mac に Python 3.13 をインストールして pip install を実行したら上記のエラーが発生する現象に遭遇した。 curl -sS https://bootstrap.pypa.io/get-pip.py | /Library/Frameworks/Python.framework/Versi…
概要 using System; using System.Diagnostics; using System.Linq; namespace Kogane { /// <summary> /// Xcode のバージョンを取得する時に使用するクラス /// </summary> public static class GetXcodeVersion { //=======================================================…
概要 unsupported option '-G' for target 'arm64-apple-ios10.0' Firebase を使用している Unity プロジェクトを Unity 2022.3.22f1 で iOS ビルドして、生成された Xcode プロジェクトを Xcode 16.2 でビルドしたら上記のエラーが発生する現象に遭遇した。…
概要 f16 を使用している理由 Mac のシステム設定の「キーボード > キーボードショートカット...」の 「入力ソース > 前の入力ソースを選択」に F16 を設定することで 日本語配列キーボードの半角/全角キーを使えるようにしている。 参考サイト様
概要 Library/Bee/artifacts/iOS/AsyncPluginsFromLinker: Burst internal compiler error: Burst.Compiler.IL.Aot.AotLinkerException: Failed to determine iphoneos sdk installation path - /Applications/XCode.app/Contents/Developer/Platforms/iPhon…
概要 Could not find a working python interpreter. Please make sure one of the following is in your PATH: python3 python3.8 python3.7 python2.7 python2 python UnityEngine.Debug:LogError (object) Firebase.Editor.PythonExecutor:FindPythonInte…
概要 Unity プロジェクトのソリューションを Rider で開いた時に 上記のエラーが発生する現象に遭遇した Rider の 設定 | 環境 の「.NET」の「Install」を実行して Rider を終了して Unity の「Preferences > External Tools」の 「Regenerate project files…
概要 ファイル | 設定 | エディター | 一般 | コード補完 の メンバーを [EditorBrowsable] 属性別にフィルター をオンにする 参考サイト様 https://youtrack.jetbrains.com/issue/RIDER-17669
概要 public override void OnGUI( string searchContext ) { using var changeCheckScope = new EditorGUI.ChangeCheckScope(); m_editor.OnInspectorGUI(); if ( !changeCheckScope.changed ) return; // ReorderableList を変更してもここに来ない } 対策…
ソースコード using System; using System.Linq; using UnityEditor; using UnityEditorInternal; using UnityEngine; [InitializeOnLoad] internal static class Example { private static readonly Type PROPERTY_EDITOR_TYPE = typeof( Editor ).Assembly…
ソースコード public static IEnumerable<T> MergeInterleaved<T> ( this IEnumerable<T> self, IEnumerable<T> second ) { return self .Zip( second, ( x, y ) => new[] { x, y } ) .SelectMany( x => x ) ; } 参考サイト様</t></t></t></t>
概要 ForceMeshUpdate を使用すると正しい FontSize が取得できる
概要 yt-dlp.exe -o "%%(upload_date>%%Y%%m%%d)s_%%(title)s.%%(ext)s" -f best "https://www.youtube.com/@Hoge" pause 参考サイト様
ソースコード using System; using UnityEngine; namespace Kogane { public sealed class SetTimeScaleScope : IDisposable { private readonly float m_oldTimeScale; private bool m_isDisposed; public SetTimeScaleScope( float timeScale ) { m_oldTim…
ソースコード using System; using UnityEngine; namespace Kogane { public sealed class SetTimeFixedDeltaTimeScope : IDisposable { private readonly float m_oldFixedDeltaTime; private bool m_isDisposed; public SetTimeFixedDeltaTimeScope( float…
ソースコード using UnityEngine; namespace Kogane { public static class Collider2DExtensionMethods { /// <summary> /// Physics2D.IgnoreCollision を呼び出します /// </summary> public static void IgnoreCollision ( this Collider2D self, Collider2D collider2 ) { …
ソースコード using System; using UnityEngine; namespace Kogane { public sealed class SetPhysics2DSimulationModeScope : IDisposable { private readonly SimulationMode2D m_oldSimulationMode; private bool m_isDisposed; public SetPhysics2DSimul…
概要 using System; using System.Reflection; using UnityEditor; using UnityEngine; internal static class Example { [MenuItem( "hoge/hoge" )] private static void Hoge() { const BindingFlags bindingAttrs = BindingFlags.Instance | BindingFlags…
概要 using System; using UnityEditor; internal static class Example { [MenuItem( "hoge/hoge" )] private static void Hoge() { var type = Type.GetType( "UnityEditor.GameView,UnityEditor" ); var editorWindow = EditorWindow.GetWindow( type ); …
概要 using UnityEditor; internal static class Example { [MenuItem( "hoge/hoge" )] private static void Hoge() { PlayModeWindow.SetCustomRenderingResolution ( width: 480, height: 270, baseName: "480x270" ); } }