Put a Prefab/Object inside the GUI

to be clear, I want to make something like this
Hello Hero
Knights N Squires
Elsword
DOTA 2

my current project is 2D, so I focus on making the GUI like 2nd pic (Knights N Squires).
and I’m using NGUI as my GUI tool
(I’ve asked this question in NGUI support but the dev said that I suppose to ask this in unity forum)

As I know it’s impossible to put objects directly to GUI. I’ve tried putting it directly inside GUI hierarchy but it’s not different with putting it as a root. when I move the camera the object won’t follow. it’s obvious right… bcos it’s not a GUI.

So what’s the trick to do this stuff? I’ve thought some approaches here:

  1. In pic1(Hello Hero) and pic2(Knights N Squires) , Do they put the objects somewhere in the world, and when something triggers (like selecting a hero), a camera views a certain object (the selected hero) and then make the GUI renders the camera vision?
    *it looks like Camera Render is Pro feature so I can’t use it till I purchase the Pro version
    which is maybe after this project sale.

  2. In pic3 (Elsword) case, when the player walks, the object inside GUI still in idle position, so that means the GUI and the Player are 2 different objects (but same prefab), that makes it really different from Approach#1.
    still, what’s the trick?

If you ever had a project like this, maybe further explanation won’t be needed as you should know how to do this.
really need help from you guys.
thanks

If you’re using NGUI, there is an example of using a 3D model alonside with it.

Anyways, you could have a second character hidden somewhere with another camera pointing at it and disabled most of the time, and when the player opens the appropriate GUI menu you toggle them on and set the camera viewport to the right screen location so it fits inside your GUI.

1618625--98822--$Sans titre-1.jpg

No no that’s not what I meant.
in NGUI example the orc positioned in world vector (0,0) so it will always stay at the center of the screen.
to simplify things
say, there are 3 boxes beside the orc, right? How can I put the orc inside one of the UI boxes?
and still doing idle animation. but it’s 3d UI. things might be easier if it’s 2D UI.

and what’s that viewport rect? I just knew it. :stuck_out_tongue:
could you explain more?
I’ve tried you suggestion and it works like a charm.
thanks man