- Home /
The question is answered, right answer was accepted
TextMeshpro material instance being created
Hi, I have a TMPro material whose properties I alter based on selected language. However during some point in runtime, some of the TMPro components get an instance of the material instead (as shown in attached images) so the properties which I change in my referenced material won't be reflected on those particular TMPro gameobjects. Any Idea why material instance creation is happening and how to prevent them?
Perhaps the getter of T$$anonymous$$P_Text.font$$anonymous$$aterial property is called somewhere?
Yes that was it thank you. TIL accessing getter alone can create the instance
Follow this Question
Related Questions
TextMeshProUGUI Font Disappearing on Low FPS,Unity TextMeshProUGUI Font Disappearing 0 Answers
Changing two different objects renderer colour 1 Answer
How to add font material to TextMesh in the code? 0 Answers
Is there ANY way to enter "Font Material" in the inspector? 0 Answers
How to apply custom shader/material to a Text Mesh Pro text? 0 Answers