Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: nuFF3 on May 27, 2020, 11:09:54 AM

Title: Set Global Shader Variable Actions
Post by: nuFF3 on May 27, 2020, 11:09:54 AM
Since there's no actions for setting global shader variables, I decided to make my own.
These are essentially edited versions of 'Set Material Float', 'Set Material Color' and 'Set Material Vector4', with some redundancies removed.
I removed the requirement for a 'Mesh Render' component, being able to target a different gameobject, and setting material id.
We won't need to set a specific gameobjects since it targets a material and its shader. All we need to to is specify the material.
My actions are called:

Feel free to download them in the attachments below, and to add them to the Ecosystem if needed.

These actions are not intended to replace the use of 'Set Material X', these are intended for the use where 'Shader.SetGlobalFloat', 'Shader.SetGlobalColor', ect, should be applied.
Title: Re: Set Global Shader Variable Actions
Post by: magarikado on September 19, 2021, 11:06:13 AM
Thank you sooooooooooo much you saved my world