1
Playmaker Help / Instance material at runtime?
« on: October 15, 2018, 06:47:41 AM »
Hi, is there a way to instance a material at runtime? I'm in a situation where it makes the most sense to use sharedMaterial, but that has the annoying problem of actually modifying the mat file in Assets. It doesn't reset on exiting playmode.
What would be ideal is to instance the material at runtime, then sharedMaterial changes can be applied to the instance, which would then revert back on exiting Play mode.
Basically looking for a Playmaker version of Spikeh's solution here: https://answers.unity.com/questions/396347/how-to-stop-renderersharedmaterialsetcolor-writing.html
What would be ideal is to instance the material at runtime, then sharedMaterial changes can be applied to the instance, which would then revert back on exiting Play mode.
Basically looking for a Playmaker version of Spikeh's solution here: https://answers.unity.com/questions/396347/how-to-stop-renderersharedmaterialsetcolor-writing.html