0
Answered

UI Element Dissolve

karagorn 4 years ago updated by jackielo 4 years ago 1

Hi,

I am trying to make an UI version of dissolve shader. I know there is an example for sprite. I changed it's shader type to UI however didn't work.

I tried to created from empty one. Unfortunately I couldn't it. Can you make an example or more examples for UI elements please?

Answer

Answer
Answered

Shader created by Shader Weaver has no problem when changing to UI. 

However, the animation created by Unity's Animator is used in that 'Dissolve' effect. It builds on Sprite.

You can do animation for UI, like the one use for Sprite.

Basicly, set the Image color and material param the same value in the same animation frame as animation for sprite.

Once your animation is done, it will work just as the Sprite Dissolve.

I will consider make UI versions for some Sprite Examples.(Not guarantee)

Thanks for the suggestion.

Answer
Answered

Shader created by Shader Weaver has no problem when changing to UI. 

However, the animation created by Unity's Animator is used in that 'Dissolve' effect. It builds on Sprite.

You can do animation for UI, like the one use for Sprite.

Basicly, set the Image color and material param the same value in the same animation frame as animation for sprite.

Once your animation is done, it will work just as the Sprite Dissolve.

I will consider make UI versions for some Sprite Examples.(Not guarantee)

Thanks for the suggestion.