# Creating a part icon

## 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: Diffuse = Albedo Set the **Color Space** field to **Non-Color** for **Metallic**, **Normal**, and **Ambient Occlusion** 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`.

**How to assign materials to multiple objects in Blender?**


1. Go to **object mode**.
2. Prepare one object with the materials you want assigned to multiple objects.
3. Select all objects you want to copy the materials to.
4. Hold **shift** and **click** the object you prepared last to make it the active object.
5. Press **Ctrl+L**.
6. Choose **link materials**.

## 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**.