c# - How can I get Texture2D from material? -


firstly sorry english. i'm trying texture2d material i'm getting error "texture '' no data". if tried normal texture, there no problem when tried texture2d, returns error. know how texture2d material??

thanks

//this line of code i'm using now. texture2d temp = target.getcomponent<renderer>().material.maintexture texture2d;


Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

minify - Minimizing css files -

Connecting Spring Batch to Remote Cassandra Database -