うにてぃブログ

主にUnityとC#に関する記事を書いていきます

2021-12-04から1日間の記事一覧

【Unity】Texture2D の Read/Write Enable を変更せずに GetPixel する

通常 Texture2D からピクセル情報を取得する場合には、Read/Write Enable を true にする必要があります こうしないと以下のエラーが出てしまします UnityException: Texture 'Hoge' is not readable, the texture memory can not be accessed from scripts.…