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

Cut GUI.

Discussion in 'Immediate Mode GUI (IMGUI)' started by half_voxel, Apr 16, 2008.

  1. half_voxel

    half_voxel

    Joined:
    Oct 20, 2007
    Posts:
    978
    Hi.
    I want to make a gui menu where you can see through the main box (covering all the screen) to the camera witch is rendered in a small rect below. Now can i "Cut" a hole in the gui using a rect, or do i have to make a texture with a hole in it?.
     
  2. shaun

    shaun

    Joined:
    Mar 23, 2007
    Posts:
    728
    Why don't you render the camera to a texture and display that in the GUI?

    You can 'cut' a hole in the GUI, but it seems like not such a good idea, especially if you change resolutions - it would be problematic to manage.

    What are you trying to do exactly?
     
  3. half_voxel

    half_voxel

    Joined:
    Oct 20, 2007
    Posts:
    978
    I thought that render-to-a-texture was only a pro feature. If yes I can explain what i want to do with this image:
     

    Attached Files:

  4. shaun

    shaun

    Joined:
    Mar 23, 2007
    Posts:
    728
    Yes - RT's are a Pro only feature. You can create a PNG with the hole pre-cut in photoshop and it should work just fine.