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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -