Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Stain Corb on April 16, 2022, 04:57:49 PM

Title: Animating individual shader graph material float value (SOLVED)
Post by: Stain Corb on April 16, 2022, 04:57:49 PM
Hi all.

I am trying to animate the float of a material I created in Shader Graph. but I need it to work on each individual object and not the global material I created.

I have constant prefabs that are activating at random, and after some time the material is suposed to change "On each individual prefab" but every single object changes at the same time globally.

Did not have this issue before.

How can I fix this issue

Title: Re: Animating individual shader graph material float value (SOLVED)
Post by: Stain Corb on April 16, 2022, 07:50:43 PM
Solution = I did not realize I needed to create a new material per object.

PAST = Reason why it used to work before is that I would use create object instead of activete & Deactivate, so creating new object will also create an instance of the material. (Did not know this)