Hi guys, so I have this code:
How To know if ShaderUtil.GetPropertyType is a Texture2D
Code (csharp):
- List<Texture> list = new List<Texture>();
- if(ShaderUtil.GetPropertyType(mat.shader, i) == ShaderUtil.ShaderPropertyType.TexEnv) {
- //if the texture is not null then works, but if its null, how do I know if its a Texture2D this property type?...