うにてぃブログ

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

Bug

【Unity】テクスチャやスプライトのサムネイルが表示されない

特定の Unity バージョンで、テクスチャやスプライトを設定する際に表示されるウィンドウで、サムネイルが正しく表示されない現象が発生しています。 初めは Unity のキャッシュの変更が原因かと考えていましたが、実際にはバグで表示されていないようでした…

【Unity】DrawMeshInstanced does not support the shader 'ShaderName' because it does not read any instanced properties. Try switching to DrawMeshInstancedProcedural if the shader is doing procedural instancing.

Graphics.RenderMeshInstanced を利用していたところ以下のエラーが出て原因を探していたところ DrawMeshInstanced does not support the shader 'ShaderName' because it does not read any instanced properties. Try switching to DrawMeshInstancedProce…