Search Unity

Doing GUI stuff whose output goes to a texture

Discussion in 'Immediate Mode GUI (IMGUI)' started by jan1984, Jul 21, 2008.

  1. jan1984

    jan1984

    Joined:
    May 30, 2008
    Posts:
    43
    hi guys,
    i wanna do something like have the output of a camera going to a rendertexture.this rendertexture will be applied to another object.

    so heres the problem.
    i did something like
    GUI.label(new rect(screen.width/2,screen.height/2,...))

    i expected this to refer to the screen with reference to the camera that was rendering to the rendertexture and not with reference to the main camera.
    so what happens is the text comes at the center of the main screen.this is not what i want.i want the text to be at the object's center.
    How to solve this?
    thx
    jan