I have a mesh which I import, but its rotations are wrong and I want to simply reorient it within Unity rather than mess with the raw asset.
However, I do not see how to put this GameObject inside another so that I can rotate the mesh without rotating the GameObject itself. That is, my human avatar when imported looks like he’s lying on the ground and I want to encapsulate this in a GameObject so that “forward” is, well, FORWARD.
IMO, the best solution would be to support transform mods on import so that my runtime environment needn’t be crufted with encapsulating transforms which will eventually have an impact when I have many objects on screen.
Thanks in advance.
tone
In general (and especially for characters), it pays back big time to get the raw assets right.
If you absolutely cannot be bothered, you can work around it using parenting:
create a new game object, and put that at the right location compared to your original mesh object.
Rotate the orginal mesh object so it is upwards.
Select the mesh game object, THEN the gameobject with the right transform, and select GameObject->Make Parent. If you make a prefab of this construct, Unity will automatically pick the transform parent when clicking on the mesh in the scene.
As for the imports, it’s our philosophy that you should make sure your import assets are ‘right’. Correcting stuff in the import stage leads to code bloat, and you not being able to trust what you see in your modelling app.
Thanks Nicholas. I expected a drag-and-drop to place the mesh within the hierarchy beneath the adoptive parent.
Certainly agree on the long view being adherence to art import standards, but it would be nice if import options permitted this to be done on import, as that would meet many of the same top-level needs of efficiency.
Consider: the import options already have scaling in it (why is this set to .1 and not 1?). I’d like to see the other elements of transformation included in the same manner so that mesh origins and orientations can be corrected before the engine really sees it, even if the artists get it wrong.
tone