- Home /
Question by
ryanc125625 · Jun 02, 2013 at 06:49 AM ·
javascript
get a height of a gameobject
Hey, i need to get the height of the game object I don't need the game objects scale. also it doesn't have a renderer or a mesh its just a group of objects
Comment
Best Answer
Answer by konashadow · Jun 02, 2013 at 08:42 AM
Try using the transform.x of the object. Make a gameobject variable, set it to the one you want, then do-
gameobject_variable_name.transform.x
and do whatever you want with it.
I would say yes, but this game object isn't added to the game yet.. its getting added... i was just thinking off adding a script to the object specifying the height...
Your answer
![](https://koobas.hobune.stream/wayback/20220613103352im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
whats wrong? nullpointer 1 Answer
Bomberman in 1st person 1 Answer
Does anyone know how to fix this if statment? 2 Answers