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

Scaling the GUI Matrix dont let me use the whole screen

Discussion in '2D' started by proghix123, Apr 9, 2015.

  1. proghix123

    proghix123

    Joined:
    Jan 6, 2015
    Posts:
    1
    Hey Community,

    Currently I am developing a small graph editor for unity and now I am trying to implement the functionality of scrolling and zooming in the graph. I already found solutions for that in the community, but now I have a problem where I couldnt find any help, yet. When I change my GUI Matrix with GUI.matrix = ... so that I use a scaling matrix such as Matrix4x4.Scale(0.6f); then it scales all my elements but they are cut at the end of 0.6 of the screen. So I think after changing the matrix, I cant paint on the area behind my scaled area, which makes sense in my point of view. But does anyone know a way to avoid this?