Is there a way (and how to do it) to "freeze transform" (or apply location/ rotation/ scale to) the mesh imported?
The specific problem here (the platform collider) was solved with a workaround involving an empty object, but I'm more interested in this "generally" (as opposed to the specific)... Also, if there are any benefits to using this approach?
Thanks!
I believe you're asking how to apply the rotation/scale on the object when you export out of a 3d program? These were created in Blender, so in there you would need to apply the rotation and the scale by using CTRL+A which will then pull up a pop up menu allowing you to apply the rotation/scale/location as you'd like.
Regarding using an empty game object, I would almost always recommend adding that anyways. I very rarely like to add scripts and components directly to mesh objects. Reason being is that you may want to swap out that mesh object at any time, and/or disable it so it's not visible in game. If you have a lot of components on that object it makes it more difficult to customize in that way.
Not only that, but in any situation where you want to control the rotation/position of an object in a different manner than the actual mesh orientation it's much easier to use an empty to control that. If there's something else you were asking about let me know, thanks.
Hi Jonathan,
Thank you for the prompt response! However, that's not what my question was [intended to be]... : )
Excuse the probable inherent vagueness (of the initial wording) I was trying to be concise above all, but now I see that may have come out at the expense of clarity... So, I'll try like this:
Thanks in advance!
The link your provided is for ProBuilder, which is a tool for building 3d models in Unity, similar to a simplified 3d program but meant for quick prototypes of levels and general layout. Unity itself doesn't have a freeze transform like ability. So the rotation/scale it comes in at into Unity is the default it'll stay with. You can change these in Unity but you can't apply that new change nor reset the original values.
Here is the documentation (a bit old) https://docs.unity3d.com/Manual/HOWTO-FixZAxisIsUp.html that discusses fixing rotations in Unity. They don't really have a tool to apply rotations, it mostly involves adding empty game objects as a parent of which you can then rotate.
I'll also post a link to this article which may help shed some light on using imported meshes within Unity and ways to "fix" them if need be: https://cgcookie.com/articles/importing-and-exporting-game-assets
If you have any other questions let me know, thanks.
Thank you J!
That pretty much draws a full map for me, after some ping- pong; so, to summarise: We do our mesh edits OUTSIDE of Unity and handle any needed manipulation [within] via empties (so, not a workaround as I have assumed, but the legit, only way to go about it). Apologies if this is all too obvious and a time waste (for yourself or anyone who"s happened to end up reading this); as I've stated earlier> uberN00b here! : )
Closing (marking as [SOLVED])... if there is a different convention (or any at all) for doing this, do let me know!
Cheers!
No worries, glad I could help you better understand the concept. If you have any other questions feel free to ask!