All

unity's raycasthit tutorial

Using RaycastHit in Unity to Detect and Manipulate Objects

Using RaycastHit in Unity to Detect and Manipulate Objects Introduction Games often have a need for detecting where objects are in relation to other objects or interactions from the user. Usually, you can detect these interactions through collisions or triggers. Sometimes, you may only want to detect collisions in one direction or over a set …

Using RaycastHit in Unity to Detect and Manipulate Objects Read More »

unity moving platform

Unity Create a Moving Platform the Player Character Can Stand On

Unity Create a Moving Platform the Player Character Can Stand On Moving Platforms In Unity Moving platforms are a staple in any platformer. Platforms create a target for players to aim for when traversing the level. Landing on a platform is a test of the player’s hand eye coordination as well as their skill at …

Unity Create a Moving Platform the Player Character Can Stand On Read More »

unity getcomponent

Unity GetComponent for Accessing, Storing, and Modifying Components

Tips and Tricks: Unity GetComponent for accessing, storing, and modifying the behaviors of your objects Introduction Unity’s GetComponent method is probably the most commonly used method you will need outside of the lifecycle event methods. GetComponent retrieves a component that is attached to a GameObject and returns the component and all of its current properties. …

Unity GetComponent for Accessing, Storing, and Modifying Components Read More »

unity addcomponent

Using Unity AddComponent to Modify Objects in Your Game

Tips and Tricks: Using Unity AddComponent to Modify the Properties of Objects in Your Game Introduction Unity’s AddComponent method is extremely useful in scenarios where building a prefab is not possible. AddComponent adds custom classes or any of Unity’s provided components to your GameObjects while the game is running. There are a few ways to …

Using Unity AddComponent to Modify Objects in Your Game Read More »