Question by
TheMK-_- · Jul 02, 2018 at 11:43 PM ·
camerascripting problemgameobjectboundsfocus
Framing multiple objects from a list along y axis only?
Ok so I have a list of spawned blocks. As these stack on top of each other I want my camera to frame all these objects as the tower gets taller by zooming out and panning up. I may also need to specify a max zoom amount.
My question is how can I code this using render bounds as I don't think I've fully grasped how it works.
Any help would be greatly appreciated and code examples for a noob would be an added bonus.
Thanks
P.S do I require a list for this to work as obviously performance may be an issue as more blocks spawn the list is always increasing in size.
Comment