Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

UI panel outside canvas - device orientation problem

Discussion in 'UGUI & TextMesh Pro' started by DarkHorse10084, Jan 13, 2016.

  1. DarkHorse10084

    DarkHorse10084

    Joined:
    Jan 9, 2016
    Posts:
    8
    Hi,

    I am developing an iOS app that contains page slide transitions using Unity 5. The canvas contains a forward button and when pressed a UI panel slides in from outside the canvas boundary. This works fine in iPhone tall mode but when viewing in iPhone wide mode the UI panel does not slide all the way in as seen in the pictures.

    I'm thinking its maybe an anchor issue but not sure exactly. I currently have the outside UI panel set to stretch stretch.

    Can anyone help me out? I'm a complete newbie by the way and everything I've done so far has been done by trial and error and using tutorials but I can't find a solution for this.
     

    Attached Files:

  2. DarkHorse10084

    DarkHorse10084

    Joined:
    Jan 9, 2016
    Posts:
    8
    Any help on this? The panels outside the canvas are also not scaling to suit the canvas orientation. I'm really stuck on this one but sure it must be something simple.
     
  3. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    DarkHorse10084: Hi there, It's definitely going to be just guesswork, without seeing image of your viewport+wireframes+anchors shown and inspector settings for this particular panel.
     
  4. DarkHorse10084

    DarkHorse10084

    Joined:
    Jan 9, 2016
    Posts:
    8
    Would it be possible for me to package my project up and send it to you? I'm a pure beginner so I'm not even sure how to show you what you're asking for?
     
  5. DarkHorse10084

    DarkHorse10084

    Joined:
    Jan 9, 2016
    Posts:
    8
    again, any help would be greatly appreciated. I'm stuck on this one and cant really progress.
     
  6. DarkHorse10084

    DarkHorse10084

    Joined:
    Jan 9, 2016
    Posts:
    8
    its ok I solved it! I figured out that I needed to animate the anchor points between frame 0 and frame 15 to go from right stretch to stretch stretch. I knew it'd be something easy like that. awesome! :)