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

Secondary camera views in GUILayout.window

Discussion in 'Immediate Mode GUI (IMGUI)' started by ctsteve123, Aug 21, 2008.

  1. ctsteve123

    ctsteve123

    Joined:
    Sep 13, 2007
    Posts:
    51
    How do you place the content of a secondary camera( for example a side view) into a GUILayout window{ or Box]?


    The GUILayout has a content parameter, which can call a function to load content. Not sure how to make the camera view as content.

    Like the feature of GUILayout window, in that if there are multiple secondary windows that they can "collapse" if not used. Right now am using multiple camera normalized view ports and they are static in the scene.
     
  2. forestjohnson

    forestjohnson

    Joined:
    Oct 1, 2005
    Posts:
    1,370
    Maybe you could get the size of the window, make sure you have a rendertexture of that size, render to it, and then put it in the window as content.
     
  3. ctsteve123

    ctsteve123

    Joined:
    Sep 13, 2007
    Posts:
    51
    Thanks for the reply forestjohnson. I should have said that I only have the indie version.. I believe that Render Texture with cameras is a pro feature.

    Is there another solution for those with indie versions?