Open in app

Sign In

Write

Sign In

Hal Brooks
Hal Brooks

27 Followers

Home

About

Mar 22, 2022

Unity Input System: Action Maps

Objective: Uses same keys to control player and car with different movement. Previous set up Unity Input System to move the Player around using its Player action map. This article describes how to set up a second action map, Car, with unique controls for driving a vehicle. Create a new…

Unity

4 min read

Unity Input System: Action Maps
Unity Input System: Action Maps
Unity

4 min read


Mar 20, 2022

Unity Input System: Control Schemes

Objective: Create a keyboard and Xbox controller scheme for input actions. Input control schemes are different input systems which can be linked to actions based upon hardware being used. For this article, add a control scheme for Keyboard and Xbox controller. Each path (denoted by pink) within a binding (blue)…

Unity

3 min read

Unity Input System: Control Schemes
Unity Input System: Control Schemes
Unity

3 min read


Mar 19, 2022

Unity Input System: Movement

Objective: Setup simple movement using Unity’s new input system. Create a 3D Object > Cube named Player, and tag it Player. From Unity’s menu, open window > package manager and search for input. Install the Input System as shown below.

Unity

4 min read

Unity Input System: Movement
Unity Input System: Movement
Unity

4 min read


Published in Dev Genius

·Mar 17, 2022

Cat Facts: UnityWebRequest

Objective: Retrieve a cat image and cat facts using UnityWebRequest. Create a new scene, and add a UI > RawImage and UI > Text, naming them, respectively, Cat_img and Fact_txt.

Unity

3 min read

Cat Facts: UnityWebRequest
Cat Facts: UnityWebRequest
Unity

3 min read


Mar 13, 2022

Enemy Waves with Scriptable Objects

Objective: Create waves of enemies using scriptable objects. Create a new scene and add a plane for the ground. Now add a Cube, Cylinder and Sphere to the scene, tagging these as Enemy. Drag these enemies into your Prefabs folder and delete from the hierarchy. Next create a new script…

Unity

3 min read

Enemy Waves with Scriptable Objects
Enemy Waves with Scriptable Objects
Unity

3 min read


Mar 12, 2022

Unity Explosions

Objective: Create an exploding crate that knocks back objects. Create a new scene, and import the Breakable_Wooden_Crate and Explosion_09 from GameDevHQ Filebase. The Breakable_Wooden_Crate has two fbx child objects, Cube_Cube_001 and Voroni_Fracture, which need to be separated from their parent prefab so they can be independently instantiated. Drag the Breakable_Wooden_Crate…

Unity

3 min read

Unity Explosions
Unity Explosions
Unity

3 min read


Mar 10, 2022

Unity Observers

Objective: Create cubes which have different responses to the same action. Observers are game objects that listen for an event. Create a C# script called MainCamera and attach it to the Main Camera. This will house the public static event Action onSpace. The static key word means there is only…

Unity

2 min read

Unity Observers
Unity Observers
Unity

2 min read


Mar 9, 2022

Command Interface: Recording input

Objective: Using an interface create a playback system for player commands. Set up a new scene with three cubes, and four buttons. Position the buttons and cubes as shown in image above. Tag each cube with the tag, “Cube”. Each button will handle a different feature for playing, rewinding, resetting…

Unity

4 min read

Command Interface: Recording input
Command Interface: Recording input
Unity

4 min read


Mar 6, 2022

Bullet Pools in Unity

Objective: Create a bullet pool to recycle bullets, improving performance. First create a 3D object > capsule and add a script called Bullet to it, as shown below. Drag this object into the projects Prefab folder then delete this object from the hierarchy.

Unity

3 min read

Bullet Pools in Unity
Bullet Pools in Unity
Unity

3 min read


Mar 5, 2022

Language-Integrated Queries: LINQ

Objective: Use Linq to explore a list of items. Create a new empty game object, Item_Manger, and add a new script ItemManager. Make sure to add the using System.Linq namespace. Within this script, create a new class Item which has three variables a string name, an int itemID and int…

Unity

3 min read

Language-Integrated Queries: LINQ
Language-Integrated Queries: LINQ
Unity

3 min read

Hal Brooks

Hal Brooks

27 Followers

Unity Developer

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech