Shader&Button
Asked Answered
C

2

0

Hello everyone, could you please advise if it's possible to connect my custom shader (I've created an outline shader with the effects I need) to buttons? If so, could you provide some guidance on how to do this? How do I make it work when I hover the mouse over the button?

Certain answered 16/4, 2023 at 7:20 Comment(0)
O
0

i hope that section "Create a UI widget to control the shader" of this video will help:

Orelia answered 16/4, 2023 at 13:7 Comment(0)
S
0

you could probably give your shader a uniform/parameter for toggling the effect and use the mouse entered/exited signals via script to toggle it.

Salinasalinas answered 16/4, 2023 at 10:17 Comment(0)
O
0

i hope that section "Create a UI widget to control the shader" of this video will help:

Orelia answered 16/4, 2023 at 13:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.