Skip to content

Icon Sprites

Michel McBride-Charpentier edited this page Sep 1, 2020 · 3 revisions

Item icons can be anything you want, but to match the other ones in the game the full item should be shown at a 3/4 view facing the bottom right, with a transparent background. Do not include the display case.

Size: 128x128 Format: .png

Inspector Import Settings

  • Texture Type: Sprite (2D and UI)
  • All other default settings are fine.

Using the Screen Capture Scene

The Screen Capture Scene contains a camera and lighting setup for quick and consistent screenshots of your mod items to be used as game UI icons.

  1. Place your item prefab under the Items object in the scene hierarchy. With a Position and Rotation of 0, 0, 0 it should appear in the center of the screen, with a 45 degree angle.
  2. Select the ScreenCapture object in the scene hierarchy. This contains the script tool for taking full resolution screenshots with transparent backgrounds in the editor.
  3. Press Play in the editor, and the Capture button on the script tool.
  4. Images are saved in the StreamingAssets/ScreenCaptures folder.
  5. Open the saved image file in your image editor of choice, and scale and crop it to fit nicely in a 128x128 image. Export as .png to preserve transparency.
  6. The image is ready to be brought back into Unity as an item icon sprite.

Clone this wiki locally