Repository navigation
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.
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.
- Place your item prefab under the Items object in the scene hierarchy. With a Position and Rotation of
0, 0, 0it should appear in the center of the screen, with a 45 degree angle. - Select the
ScreenCaptureobject in the scene hierarchy. This contains the script tool for taking full resolution screenshots with transparent backgrounds in the editor. - Press Play in the editor, and the Capture button on the script tool.
- Images are saved in the StreamingAssets/ScreenCaptures folder.
- 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.
- The image is ready to be brought back into Unity as an item icon sprite.
Getting Started
How To
Game Items
Assets & Best Practices