Unturned

Unturned

Not enough ratings
Item Icon Preview in Unity
By WW_TC
This guide will teach you how to setup a preview of the Icon for items inside of Unity, allowing you to test in real time the Icon.
   
Award
Favorite
Favorited
Unfavorite
Setting up the Output
I would recommend moving the Camera in the bottom corner below the Inspector. You can put it somewhere else, but keep in mind you will need to use the Scene to adjust the icon.
Now we want to configure the size of the Game view. Open the Resolution menu and create a new preset.
Make sure to give it a good Label like "ICON". Make sure the type is set to Aspect Ratio and then the Width and Height is the Item Dimensions. You can always edit the Preset after it is created to adjust the dimensions.
Adding the Camera
Add a Camera Component on the Icon, then set the Projection to Orthographic. Then the Clipping Plane Near should be set to 0.01 and lastly the Size should be the same as Size_Z in the .dat file of the item.
Now all there is left to do is adjusting the position of the Icon if u want to give it some cool angle like Arid items as well as adjusting the Size to make sure the item fits within the Icon, u will also have to adjust the icon position (most likely in Global mode) to make sure the Item is centered in the preview.
!! IMPORTANT !!
MAKE SURE TO REMOVE THE CAMERA FROM THE ICON BEFORE BUNDLING!
1 Comments
primitiven Jan 6 @ 5:56pm 
useful, thank you