Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

event to handle screen dimension change?

Discussion in '2D' started by DarkMarmot, Nov 14, 2013.

  1. DarkMarmot

    DarkMarmot

    Joined:
    Nov 13, 2013
    Posts:
    22
    Trying to lay things out and view them in the game window, I'd like to be able to act on size changes to the window so my 2D elements can appropriately position themselves. Is there any event I can listen for? Or do i need to query the resolution every frame and dispatch an event myself?

    Thanks,
    Scott