Question by
TigrisGames · May 01, 2020 at 09:31 AM ·
scripting problemraycastmeshmodelplacement
How to Place Model FULLY on Top of Plane ?
i want to instantiate a GameObject That contains model/models as children, and i want to place it fully on top of a plane. (the whole Model)
the possible solution is to loop through the children and use Renderer.Bounds.y .and find the highest bound from them and offset the placment on the y axis by this value.
but this method is not granted to work and might not be efficient if there is a lot of sub objects
any idea how to implement this ? any idea how unity implement this on the editor when i drag the model into the scene ?
Comment
Your answer
Follow this Question
Related Questions
Using Zed Camera Mesh Maker VR 0 Answers
Line Renderer on top of Mesh 1 Answer
Mesh not rendering correctly 1 Answer
How to pop up a text when my first person ray hit an object 0 Answers
.Blend into Unity 0 Answers