コガネブログ

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

2022-01-18から1日間の記事一覧

【Unity】Unable to add the requested character to font asset [XXXX]'s atlas texture. Please make the texture [XXXX] readable.

概要 Unable to add the requested character to font asset [XXXX]'s atlas texture. Please make the texture [XXXX] readable. TextMesh Pro でダイナミックフォントを使用している時に上記の警告が出る場合は Project ウィンドウでダイナミックフォント…

【Unity】AssetBundleBrowser: Bundle name 'XXXX' contains a period

概要 AssetBundleBrowser: Bundle name 'XXXX' contains a period. Internally Unity keeps 'bundleName' and 'variantName' separate, but externally treat them as 'bundleName.variantName'. If a bundleName contains a period, the build will (probab…

【Unity】Unity 2021.2 からLINQ で ToHashSet・SkipLast・TakeLast が標準で使えるようになった

概要 Unity 2021.2 から LINQ で ToHashSet・SkipLast・TakeLast が標準で使えるようになった (もしかしたら Unity 2021.1 から使えるかも?) using System.Linq; using UnityEngine; public class Example : MonoBehaviour { private void Start() { var …

【Unity】Unity 2021.2 から Dictionary で GetValueOrDefault などの拡張メソッドが標準で使えるようになった

概要 Unity 2021.2 から Dictionary の 3 つの拡張メソッドが標準で使えるようになった (もしかしたら Unity 2021.1 から使えるかも?) GetValueOrDefault Remove TryAdd using System.Collections.Generic; using UnityEngine; public class Example : Mo…

【Unity】StreamingAssets 内のアセットは無視フォルダに格納するとインポートをスキップできる

検証内容 たとえば StreamingAssets フォルダに 大量のアセットを格納すると インポートに長い時間がかかってしまいます ゲームをビルドする時にアセットバンドルを StreamingAssets にコピーしてからビルドする場合、 ゲームのビルドのたびに長いインポート…