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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -