Search Unity

Question How do I make a distorted lens effect on my UI?

Discussion in 'UGUI & TextMesh Pro' started by Moss112, May 2, 2023.

  1. Moss112

    Moss112

    Joined:
    Dec 6, 2021
    Posts:
    1
    Currently I have all of my UI elements 2D like normal, but I want to create a distorted-lens-like effect for the UI, basically making it look 3D. An example that I have is in the UI of a game called Ultra kill, as you can see, rather than the normal 2D style UI it has a depth-like effect. my question is, how can I make my UI have depth?

    info you might need:
    - The screen resolution I am using for my game is 1980 x 1080, and most of the UI text are from Textmeshpro
    - I use the 2019.4 version of Unity
    - the scripting language I use is C#
    - I have all of my UI placed in an empty object
    - some of the UI have scripts assigned to them

    I have searched all over the internet for tutorials on how to make this effect, but I cant seem to find anything. Can anyone help me? thanks.
     
    Last edited: May 5, 2023
  2. Stoniacc

    Stoniacc

    Joined:
    Jun 1, 2022
    Posts:
    1
    So, I'm sure you don't need this anymore, but I think if you have a camera that has its layers set specifically to the UI and then set it to a subcamera of the main one and made the FOV of said subcamera really high, that might work. Not sure though, gl. Also, based Ultrakill player
     
  3. POOKSHANK

    POOKSHANK

    Joined:
    Feb 8, 2022
    Posts:
    283
    this might shock you, but they're just rotated.