playMaker

Author Topic: VFX Graph and Shader Graph - exposed parameters  (Read 906 times)

moondust.games

  • Playmaker Newbie
  • *
  • Posts: 44
    • View Profile
VFX Graph and Shader Graph - exposed parameters
« on: June 18, 2019, 08:37:44 AM »
Hello Jean

I'm playing with VFX Graph and Shader Graph in Unity 2019. Sorry if this has been discussed (I couldn't find anything) but are there any actions yet to be able to set or change the exposed parameters with Playmaker?

In case you haven't looked into these yet when you expose a parameter being used in either graph it puts the variable in the inspector panel so it can be manipulated outside of the graph window. Shader Graph parameters can be given scriptable names like "_colour" so they can already be targeted with Playmaker but as yet I can't find a way to target the VFX Graph exposed params.

Hopefully some actions are in the pipeline or any info on how to do this would be great! Thank you.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15219
  • Official Playmaker Support
    • View Profile
Re: VFX Graph and Shader Graph - exposed parameters
« Reply #1 on: July 04, 2019, 12:14:14 AM »
Hi,

 Sorry for the delay!

I need to check this out indeed. There is no plan yet to support this, but it make sense we do because of the great power these vfx and shader graphs gives,

Bye,

 Jean

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4968
    • View Profile
    • jinxtergames
Re: VFX Graph and Shader Graph - exposed parameters
« Reply #2 on: July 04, 2019, 01:34:22 AM »
Hi.
There are several Set/Get Material actions, i believe you can use those to adjust the shader values on a material.

If you want to change only on the targeted object, you can use 'Material Property Block' (Ecosystem)
you can add [PerRendererData] to a property, then unity will not make an instance of the object

The link below shows you what the difference would be :
http://thomasmountainborn.com/2016/05/25/materialpropertyblocks/

bluedonkey

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
Re: VFX Graph and Shader Graph - exposed parameters
« Reply #3 on: April 08, 2020, 06:42:23 AM »
Hi , I would like to control an exposed parameter via Playmaker. Am I missing anything, this seems to be tricky to do? I'm pretty new to playmaker, so apologies if I missed something obvious.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4968
    • View Profile
    • jinxtergames
Re: VFX Graph and Shader Graph - exposed parameters
« Reply #4 on: April 08, 2020, 07:34:44 AM »
Hi.
Which parameter are you trying to acces.

bluedonkey

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
Re: VFX Graph and Shader Graph - exposed parameters
« Reply #5 on: April 08, 2020, 08:02:35 AM »
I just want to access some custom floats exposed from the vfx graph. In my case gravity and turbulent noise.

Thanks

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4968
    • View Profile
    • jinxtergames
Re: VFX Graph and Shader Graph - exposed parameters
« Reply #6 on: April 09, 2020, 04:15:16 AM »
Hi.
you should be able to set them with set material float
once you know the correct name of the property