- Home /
Materials created using code not rendering correctly unless I click on them.
Here's a link to the unitypackage
My materials aren't rendering properly, and showing up as completely grey unless I click on them in the Assets/Materials filder, at which point they suddenly acquire their correct color. For reference, run the project I've linked above by importing the package (Editor Version is Unity 2018.4), and in the SampleScene, just click on the GameObject called InstantiateStars, and click once on Execute. Everything works as it should, but the objects all look grey until I click on their corresponding materials in the Editor, and then they suddenly have the correct color. How can I fix this? This is just a smaller prototype, the full project will have over 2000 such objects, each with their own material, and it is impossible to have to click on each material to make it render correctly.
Your answer
Follow this Question
Related Questions
materials visible if seen by (1) all or (2) any camera(s) 0 Answers
Motion Blur/Burn in on specific material 1 Answer
Sequential shaders. Pass the output color of a shader to the next one. 0 Answers
How can I have a transparent ring around a transparent planet? 0 Answers
Problem with rendering of standard material on iOs platform. 0 Answers