- Home /
Question by
gitlinjoss · Apr 12, 2020 at 10:58 PM ·
scripting problemshadermaterialfloat
Modify a vector 2 in pbr shader using c#
Hi there, I'm trying to modify a vector 2 property in my shader, how can I access it from script? I can't use material.SetFloat because that only wants one value, unless there's a way to access the single x or y value?
Comment
Best Answer
Answer by gitlinjoss · Apr 12, 2020 at 11:37 PM
I'm like Dora over here. The way to do this is to use a combine node to generate a vector 2 from two vector 1s. Yay!
Your answer
Follow this Question
Related Questions
Material doesn't have a color property '_Color' 4 Answers
Get a Normal Map to work with World Space Shader? 0 Answers
HDRP Lit Shader: How to disable Transparency "Blend preserve" through script? 0 Answers
How come edititng "_Glossiness" through script doesn't work? 1 Answer
Changing Emission Scale UI with Script 0 Answers