Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    87
    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:
    7,658
    I think you're stuck doing it manually for now.
     
    Raseru likes this.