Finding pivot point of imported object

[EDIT] Oops, guess this should have been posted in “Answers”, not here. Sorry, will move it.

Hey!

I wonder if it’s possible to find the pivot point of an imported object through code. In the inspector I can see where it is but I would like to find it during run time as well.

Thanks!

/Bjorn

By imported do you mean from the Resources folder or an Asset Bundle ? Or are we talking about an object that you placed in your project then saved in your scene ?

Anyway your pivot point depends on how you save your model in the modeling program before it was imported into Unity. Ofc if you make it(your obj) a child of an empty GameObject the pivot point can be determined by the parent.

Thanks for answering but I moved the question to the “Answers” section. Posted it in the wrong place first…

Got help Yesterday and solved my problem.

Cheers!