Hi,
Hi i’m creating a kind of level map utility. for this i have a game-object with a orthographic camera attached.
what i want is this.
OnStart(){
- create a RenderTexture
- attach it to the camera.
}
- render the first frame.
- assign the rendered result to a Texture variable
- Disable the camera
OnGUI(){
render the Texture variable using the GUI.DrawTexture()
}
The problem lies in the second part. what can i use to render the camera for one time only and use this as a render texture. Or is there something in the editor classes which utilizes this.
greetz and thanx in advance