If you’re new to Unity, the Unity 2D tutorial can help you learn the basics of the game engine. The tutorial will walk you through the Canvas system, GameObjects, and Prefabs. You’ll learn how to rotate, set pixel size, and add drop shadows to your assets.
Set a pixel size
If you’re interested in learning 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 large.
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 need to first create 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. To do this, you can go to the Image menu and select the ‘Add Drop Shadow’ option. Then, click the drop shadow image and click 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 it must match the shape of a GameObject’s mesh. In this tutorial, we will create a collider component that describes the shape of a box.
To create a collision component, select an object in the Hierarchy view and click on Add Component. You can then select a physics collider or a kinematic rigidbody. Then, set the properties of the collider. You can also choose whether the collision component should be static or dynamic.
Comments are closed, but trackbacks and pingbacks are open.