コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

2025-10-20から1日間の記事一覧

【C#】.Replace( "\\", "/" ) よりも .Replace( '\\', '/' ) の方が速い

検証結果 検証用スクリプト using UnityEngine; using UnityEngine.Profiling; public class Example : MonoBehaviour { private void Update() { const string path = "Assets\\material.mat"; const int count = 100000; Profiler.BeginSample( "\"" ); fo…

【C#】Path.ChangeExtension でファイルパスから拡張子を取り除ける

概要 const string path = "Assets/material.mat"; var result = Path.ChangeExtension( path, null ); // Assets/material null ではなく string.Empty を渡すと Assets/material. のように 末尾に . が残ってしまうので注意。

【Unity】Split Application Binary を有効にしてビルドした App Bundle を端末にインストールするスクリプト

ソースコード 関連記事

【Unity】Android モジュールに含まれている bundletool-all-*.jar のパスを取得するスクリプト

ソースコード

【Unity】App Bundle size warning

概要 App Bundle size warning Your release App Bundle is bigger than 200 MB. Do you want to compute the min and max download sizes of APKs generated from your App Bundle? You can turn off this warning or adjust threshold value in Android Pl…