0
Отклонен

Write in member variables?

Gabe Newell 7 лет назад обновлен Freya Holmér (Developer) 7 лет назад 1

I would like to get in a Unity C# script the value of a node.



This can be done with this line in a C# script:
PropTime = Material.GetFloat("_PropTime");

But how can I set the value of a green variable (like "Prop Time") from a chain of nodes in Shader Forge, is it even possible?

Ответ

Ответ
Отклонен

Shaders can't set the values of shader properties, so this is impossible I'm afraid

Ответ
Отклонен

Shaders can't set the values of shader properties, so this is impossible I'm afraid

Сервис поддержки клиентов работает на платформе UserEcho