Preparing the mesh for Unity: Difference between revisions

From KSP 2 Modding Wiki
No edit summary
No edit summary
Line 14: Line 14:
# Click on '''Export'''.
# Click on '''Export'''.


[[Category:Creating parts]]
[[Category:Parts and modules]]

Revision as of 02:10, 15 January 2024

Prerequisites
Setting up Unity
Modeling the mesh in Blender
Texturing the mesh in Substance 3D Painter
  1. In Blender, make sure that the origin of the object is where its center of mass would be.
  2. Move the object along the vertical axis so that it rests at 0;0.
  3. The object must be at scale 1 (otherwise the shape will not be preserved in Unity). If not: Ctrl+A > Apply Scale.
  4. Also Apply Rotation in order to prevent issues in the game.
  5. Right click on the object name > Select hierarchy.
  6. Click on File > Export > FBX. Give a specific name to the file (eg: my_mod_engine.fbx).
  7. Check Selected objects.
  8. Uncheck Precalculate animation (“Bake animation”).
  9. Click on Export.