Quantcast
Channel: Answers for "How to independently change textures on clones in C#?"
Browsing latest articles
Browse All 4 View Live

Answer by Lemon

Just had a similar problem. You are correct in assuming that this happens because a deep copy was not performed. You can force the deep copy yourself:panel.renderer.material = Instantiate...

View Article


Answer by ScottFromDerby

If anyone has this problem with materials being shared by default, this might help: void Awake() { Text t = GetComponentInChildren(); // Ensure that this material is NOT the shared one!!! Material m =...

View Article

Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>