Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question re Zooming onto a Jpeg Image

Discussion in 'Getting Started' started by tst999, Feb 12, 2015.

  1. tst999

    tst999

    Joined:
    Sep 1, 2014
    Posts:
    2
    I have jpeg images on 2d planes, which are contained in a first-person 3d game. I want on a mouse-event for the image on these planes to fill the player's field of vision, become fullscreen, etc. Image sizes and hence plane sizes are variable, however, so there's no one set of dimensions that I can expect a player to be clicking on. Put another way: say the player walks by a poster or a placard on a wall-- I want the player to be able to click on the placard, and have the placard become a larger image on the end-user's screen so that the player can see it more clearly rather than have to position themselves in a potentially awkward way. I don't need scrollbars or anything like that-- just that basic zooming.

    I apologize if this is a very basic concept, but I can't seem to figure out a way to search for this tonight.
     
  2. vakabaka

    vakabaka

    Joined:
    Jul 21, 2014
    Posts:
    1,153
    do you realy need to zoom ? Just make copy of Image and show it overlay in fullsize (i think, you can use Unity UI Image for that).
     
  3. tst999

    tst999

    Joined:
    Sep 1, 2014
    Posts:
    2
    I think so. But Unity UI Image sounds very promising. Thanks.