- Home /
Find Game Objects Height Orthographic View
Is there a way to find the height of a game object which contains other game objects in pixels with an orthographic view camera?
Comment
Best Answer
Answer by Kourosh · Dec 07, 2010 at 02:21 PM
Add a Box Collider to your gameobject. All sizes are stored in there. so you can easily read them using : gameObject.collider.size.x (for instance).
When I add a box collider it starts a 0,0,0 and a size of 1,1,1 around the pivot point.
What I have is a Container gameObject that has a few child game objects inside. Is there a way to get this to wrap around the child objects too?
Your answer
Follow this Question
Related Questions
Using a button to select an object set as a variable. 2 Answers
Slicing Objects 1 Answer
Object move back to first position 4 Answers
Buff System 1 Answer