How to change a material's albedo texture during runtime from an online image?
As the question says, I have this material using a texture for albedo and I'd like to change this during runtime. This material is being used from several objects and looks like this:
I have already done the part of downloading an image and applying it as a texture on a grid (using WWW.LoadImageIntoTexture
), however I have no idea how to do that for albedo. Is this even possible? Do I need to change the actual asset every time?
Thank you for any hint!
Answer by pdwjun · Jul 26, 2018 at 03:50 PM
take a look at this post https://answers.unity.com/questions/1249527/i-need-a-script-to-put-an-albedo-into-a-material.html,see here
Your answer
Follow this Question
Related Questions
Set an Object's 2d physics material in c# 0 Answers
How to convert string to runnable code? 0 Answers
Change Material of an GameObject at Runtime using a bitmap dynamically created 1 Answer
Load, Edit and Save materials at runtime 1 Answer
How To Compare Collider Material To A Specific Material 0 Answers