Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

"Center On Children" programmatically

$
0
0
Hi, Is there a way to use the "Center On Children" command (found under the GameObject menu) from a C# script? I know I can figure out the centered position, and un-parent all children while I move the parent itself, and maybe "Center On Children" does exactly that, I dunno, but maybe it does something more efficient behind the scenes. Thanks!

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>