Creating a part icon

From KSP 2 Modding Wiki
Revision as of 14:14, 28 October 2023 by Polo (talk | contribs) (Added category)

In Blender

  1. Download the KSP2_IconGenerator.blend file from this location: https://github.com/KSP2Community/CommunityPartsPack/tree/main/Parts.
  2. Copy then open the KSP2_IconGenerator.blend file.
  3. Click File > Import > FBX and import the part.
  4. In “Scene Collection” on the right, drag and drop the “KSP2 Paintable material” (present in “ADD YOUR MODEL HERE!”) onto the model.
  5. In the shader editor, import the part textures.
    1. Diffuse = Albedo
    2. Set the “Color Space” field to “Non-Color” for Metallic, Normal, and Ambient Occlusion
    3. If no occlusion, set the “Occlusion Strength” value to 0.
  6. Select the camera (press 0 to preview the rendering)
  7. Resize and move the model if necessary.
  8. Remove the “ADD MODEL HERE!” item.
  9. Press F12.
  10. Save the image (Alt + S) as <part name>_icon.png.

In Unity

  1. Open the mod's Unity project.
  2. Move the file to the Asset folder in Unity.
  3. Make the file addressable. The name of the addressable must be <part name>_icon.png.
  4. Select the picture in Unity. In the Inspector window, set the value “Sprite” to the “Texture Type” field. Click on “Apply”.