How can I rotate multiple objects around the camera (or the camera itself) and focus on one of them which then gets set to active? This effect is popular on webpages but I do not know how to recreate it with Unity. An example would be the Carousel from GrokShock. But I need to make it myself to be able to adjust a few things (such as enlarging the object that is active and play a video). Help would be appreciated!
Another possibility is to have the camera focus the object closest (snap to it) and set it active. Is there any example code for this?
You can use the Unity function “RotateAround” Unity - Scripting API: Transform.RotateAround
For that GrokShock thing, you’d probably rotate the models around a center point for a given distance when pressing a key, you dont have to do anything with the camera
1 Like
Thank you!
here is a basic carousel code i created in C#: carousel script c# for unity3d - Unity Engine - Unity Discussions
it’s all documented so u can modify it and build on top of it
You can try this asset.