|
A few times now i've had to have alternative camera angles that i move between. Both ways seemed non-optimal to me so i thought i'd ask what the "right" way of doing this is. Here are the two ways i've tried this.
As you can see both options have their issues. I've not tried using a combination of the two, multiple cameras but only copying the details from the other cameras as required. May be an option, i'm just concerned at whether its a performance problem to have too many cameras, especially ones that will never actually be looked through directly. As ever, thanks for your time
(comments are locked)
|
|
Do both. Set everything up using new camera objects, but then in game just change your main camera to use their orientation. There is no performance penalty for having multiple inactive cameras, unless it's some weird Unity idiosyncrasy.
(comments are locked)
|
|
You could also use the Unity Gizmos to actually draw the layout in the editor. you could:
this way every place you want to be able to change to has all variables set up. Also, it allows you to preview everything in your editor. Of course this lacks a sense of how big the camera viewport would be compared to the surroundings, but you can also make use of Camera.DrawWireCube to solve this. (obviously, you'd have to rotate this cube and rescale it to match the line's rotation) Hope this helps. do these gizmos require a script to set them up or are they just drag and drop? I've not come across these yet.
Dec 18 '09 at 04:18 PM
jimbobuk
yes they require a script that runs in the editor. you could use: function OnDrawGizmos() { Gizmos.DrawIcon(transform.position, "spawnPoint.png"); } to draw an icon. You can, with this function, also draw numerous other things that can be very helpful in the editor.
Dec 20 '09 at 01:16 PM
xaddict
(comments are locked)
|
|
If this is during cutScene, why not just use a single camera and animate it in the Anim Editor? If this is for in-game, What Peter said.... :) :s. this is unity iphone, does that support the anim editor?
Dec 18 '09 at 04:17 PM
jimbobuk
Pretty sure it does. We have a copy - it's just 3000 miles away right now and I can't look at it, but I would be shocked if the Animation Editor was disabled with the iPhone,... oh wait... damn. According to this page, Unity iPhone doesn't have the intergrated animation editor... weird..
Dec 19 '09 at 07:26 AM
spencer lindsay
(comments are locked)
|
