Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

[Questions/Thoughts] Unity 4.6, the new UI system

Discussion in 'UGUI & TextMesh Pro' started by Maisey, Aug 20, 2014.

  1. vuluongthanh

    vuluongthanh

    Joined:
    Nov 23, 2013
    Posts:
    16
    I read this:
    https://developers.google.com/web/fundamentals/layouts/rwd-patterns/column-drop?hl=en
    and here their demo:
    http://googlesamples.github.io/web-fundamentals/samples/layouts/rwd-patterns/column-drop.html
    How can I do it? I try to use HorizontalLayoutGroup, VerticalLayoutGroup and GridLayoutGroup but can't achieve this.
    :(
     
  2. FuzzyQuills

    FuzzyQuills

    Joined:
    Jun 8, 2013
    Posts:
    2,869
    Can't one just place everything in that layout? Or was there some sort of interactive component I missed? :D
     
  3. vuluongthanh

    vuluongthanh

    Joined:
    Nov 23, 2013
    Posts:
    16
  4. Freezy

    Freezy

    Joined:
    Jul 15, 2012
    Posts:
    233
    Use a layout grid, then add a script that changes the row / column settings based on Screen.Width / Screen.Height?
    Should be like 20 lines of code
     
  5. vuluongthanh

    vuluongthanh

    Joined:
    Nov 23, 2013
    Posts:
    16
    Thank you :)
     
  6. AdeelAbbas

    AdeelAbbas

    Joined:
    Jul 18, 2014
    Posts:
    22
    Can Anyone please guide me I am using Unity 4.6 UI Canvas. The problem is that when I put my 3d Objects in canvas They does not show in game view and when I scale my 3d object then It shows in game view but they look too small in mobile build.
    I am using the hierarchy of UI is
    1 Canvas-parent
    1.1 Panel - Child
    1.1.1 My 3d Object
     
  7. FuzzyQuills

    FuzzyQuills

    Joined:
    Jun 8, 2013
    Posts:
    2,869
    Probably because you scaled your canvas to something real small; try changing the canvas size itself.
     
    AdeelAbbas likes this.
unityunity