Access to Shader Graph Node Values from Xcode

Hi,

Is there a way to access the shader graph nodes in Xcode to change the values during runtime such as changing values based on user inputs? Or is this not possible yet?

Thanks! Myoung

Answered by Graphics and Games Engineer in 789695022

Hi, we have the setParameter and getParameter APIs that you can use to change parameter values of a ShaderGraphMaterial at runtime. Does that answer your question?

Accepted Answer

Hi, we have the setParameter and getParameter APIs that you can use to change parameter values of a ShaderGraphMaterial at runtime. Does that answer your question?

Awesome! Is there an example that uses these two APIs that show how to retrieve the values from RCP shader graph?

You might find this (my) sample code helpful. I was wondering the same thing, and wrote a test app. It's very simple, and does only one thing.

https://github.com/halmueller/ShaderGraphControls .

Access to Shader Graph Node Values from Xcode
 
 
Q