Posts

Showing posts from December, 2020

Rotating a Character in the Direction of Movement - Unity Game Development Tutorial

Image
In this Unity game development tutorial we're going to look at how we can rotate an object so that it faces the direction it’s moving in. You can either watch the video version below or continue reading for written instructions. Right, let's get started by creating a new 3D project in Unity Hub. We'll add a Plane to represent our floor by clicking the plus button on the Hierarchy and selecting 3D Object->Plane. We'll set the scale of the Plane to ten on the X axis and ten on the Z axis. Next, we'll create a material to change the colour of the floor. To do this, we'll click the plus button on the Project panel and select Material. We'll name this material 'Floor'. We'll then click on the box next to Albedo in the Inspector panel, and choose a green colour.  We can now drag the material on to the Plane to assign it. We now need a character to move around our scene. For this we'll head over to the Asset Store by selecting Window->A

Converting a Project to URP - Unity Game Development Tutorial

Image
In this Unity game development tutorial we're going to look at how we can convert an existing project, using the built-in render pipeline, over to the newer Universal Render Pipeline. URP is a Scriptable Render Pipeline that lets you create optimized graphics across a wide range of platforms.  It also allows us to create shaders and effects visually, using Shader Graph and Visual Effect Graph. You can either watch the video version below or continue reading for written instructions. We're going to start with the project we created in our ' Slow Motion Effect ' tutorial. The first thing we need to do is to import the Universal Render Pipeline package. To do this we'll select Window->Package Manager from the main menu. We'll search for Universal RP. And we’ll install this package. Now we've installed the package we need to configure it. To do this, we need to create a Scriptable Render Pipeline Asset by clicking the plus button on the Project panel a

Vertex Snapping - Unity Quick Tip

Image
In this Unity quick tip we'll look at how we can easily position objects using vertex snapping. You can either watch the video version below or continue reading for written instructions. We'll demonstrate this with a scene with two cubes as shown below. If we wanted to position the cubes right next to each other we could try to move them by hand, but it's quite difficult to get right. Another option is to use something called Vertex Snapping.  If we hold down the V key we can select any Vertex on the Cube. We can then snap it to any Vertex on the other cube, allowing us to position objects really accurately. That covers everything for this tip. We hope that you found it useful. Please leave any questions or feedback in the comments below, and don't forget to subscribe to get notified when we publish our next post. Thanks.