Hello,
When I select an object I need a window to pop-up and I want to see that object rotating inside this window.
The selection part is done.
How can I put a gameobject rotating inside a window?
Thanks,
Hello,
When I select an object I need a window to pop-up and I want to see that object rotating inside this window.
The selection part is done.
How can I put a gameobject rotating inside a window?
Thanks,
If you’re talking about a simple in-game effect, then you’ll probably want to do something like the following:
Create a new camera (either create it and destroy it as needed, or just have it always present and activate/enable and deactivate/disable it as needed). Set its clear mode to ‘solid color’, and give it a higher depth value than the main camera.
Set the camera’s viewport so that it corresponds to the desired area of the screen.
If you just want the object shown in the window to rotate and you don’t need its motion to correspond to the motion of the actual object in any way, write a script that implements the type of rotation you have in mind, and create a game object with the object’s model and the ‘rotate’ script attached.
Position and orient the new camera so that it’s looking at the new object.
Assign the object to a layer that isn’t used for anything else, and set the camera to only show objects in this layer.
That should be it, although I suppose I could have missed a step somewhere. Anyway, I’d give that a try and then post back here if you run into problems.
Thank you Jesse.
I’ll give it a try.
I’ll keep you posted.