I was wondering if there was a way in unity to make a 2d portrait of your 3d player’s face for a picture frame in the top left of the screen. For example ------->
If anyone know how to do this could you help me out. I would really appreciate it.
The easiest way to go is to use a GUITexture with the picture you want to display. If you prefer to handle the image placement from a script then you can use GUI.DrawTexture from the script’s OnGUI function.
Thankyou for replying,
I know this, but i want this 2d portait to change every timethe player changes thier appearance, like puts a helmet on or puts a mask on. Is there any way of doing this.
Try setting up a separate ‘Photo booth’ camera, which renders to a texture (see RenderTexture). Then place your character in front of this camera for one frame, when the time is appropriate.
Be sure to release the render textures properly, to avoid massive memory consumption.
Yes it is. Didn’t see any note about that he was using non-pro version though. One other idea might be creating a second camera focusing the players head, and setting up it’s rect to fit in the corner as showed. This way the portrait would be current all the time. Might set up this camera so that it renders only the character in that case.
Not sure if this is a valid way to solve the problem though, haven’t tested anything like that myself.