- Home /
How to add a magnifying effect only to the transparent part of a sprite?
I am trying to replicate the menu style from Stalker: Shadow of Chernobyl in Unity, which looks like this: I've got my menu set up with a few buttons and a texture that overlays the first button which moves up and down corresponding to the mouse position or keyboard/controller input, which looks like this:
Problem: Now I want to apply a light magnifying effect on the selector sprite, so that the whole selector sprite plus the button behind it is about as big that it covers half of the button below (and atop in case of a middle button). Also there should be some fisheye effect like in the first picture, but only on the center transparent part of the selector.
I'm pretty new to Unity and I'm OK with using either the editor tools or C#-scripts
Your answer
Follow this Question
Related Questions
Sprite Based Score Rendering 1 Answer
Use result from first shader pass in second pass 0 Answers
Shader in SpriteRenderer vs UI Image 0 Answers