Change color on button click | Visual Scripting BOLT
Asked Answered
S

3

0

Please guide me on what I am doing wrong, just started using unity.

188302-color-bolt.png

Simmons answered 4/3 at 18:44 Comment(0)
F
0

For future people searching:

I’m currently trying to figure this out with Unity Visual Scripting. So Button > Set Colors required you input a colorBlock type, I enabled those to show up in the nodes and regenerated. But now I don’t know how to to set the button colors, only individual parts of the colorBlock (normal, pressed, disabled, etc.). I would think that the Color Block > Set Normal Color for example would output a ColorBlock to Set Colors on a button? Any thoughts?

Formalize answered 6/6, 2023 at 4:55 Comment(0)
M
0

Having spent waaaay too much time trying to figure out how these nodes are supposed to fit together, or how to convert a color node into a color block, I finally discovered the very simple solution. When you click on the Color Block node, in the inspector, there is a small Chainable checkbox you can click, that adds a color block output to the node.

Melchior answered 1/4 at 17:19 Comment(0)
D
0
Dehorn answered 1/4 at 19:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.