If you’re new to Unity, the Unity 2D tutorial can help you learn the game engine basics. The tutorial will walk you through the Canvas system, GameObjects, and Prefabs. You’ll learn to rotate, set pixel size, and add drop shadows to your assets.
Set a pixel size.
To learn how to create high-quality pixel art, the first step is to set the image’s pixel size. Unity supports up to 4096×4096 pixel textures. However, this would increase the game’s memory footprint by four times. Luckily, Unity also supports override settings, which allows developers to set different settings for each platform. This is especially helpful for mobile games, where the file size of an image can be significant.
Add a drop shadow.
This Unity 2d tutorial will teach you how to add a drop shadow to your sprite. It is done in a single pass with minimal performance impact. To create a drop shadow, you must complete the silhouette shape for your shadow. Then, use the custom shadow color property to color the shadow silhouette shape. Make sure you multiply the value by one to avoid bleeding into opaque texture areas. Lastly, you can set the blurriness level of the shadow by adjusting a slider in the shader.
You can also use Adobe Illustrator to create a drop shadow. You can go to the Image menu and select the ‘Add Drop Shadow’ option to do this. Then, click the drop shadow image and the “Add” icon.
Create a collision component.
A collision component describes the shape of an object when there is a physical collision between it and an object in your scene. A collision component will be invisible to the player and must match the shape of a GameObject’s mesh. In this tutorial, we will create a collider component that describes the form of a box.
Select an object in the Hierarchy view to create a collision component and click on Add Component. You can then select a physics collider or a kinematic rigid body. Then, set the properties of the collider. You can also choose whether the collision component should be static or dynamic.