Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Determine the direction the screen was confined at?

Discussion in 'Cinemachine' started by Raseru, Jul 29, 2018.

  1. Raseru

    Raseru

    Joined:
    Oct 4, 2013
    Posts:
    33
    I have a 2D game, when the user walks to the bottom of the screen, the UI gets in the way. I would like to flip the UI towards the top when the user is confined from the bottom.

    CameraWasDisplaced just tells me it was displaced from any direction.
    Any suggestions on how to do this? Or should I just try and manually detect it?
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    2,389
    I think you're stuck doing it manually for now.
     
    Raseru likes this.