unity prefab

How to Use a Unity Prefab to Create Games Faster and More Efficiently

Unity Prefabs Oftentimes while creating games you find yourself needing to reuse objects in multiple places. Maybe it is an enemy or perhaps even a tree. You create the first one and select duplicate to make a copy of the object. Now, you have to rotate and reposition it to fit its new location. When …

How to Use a Unity Prefab to Create Games Faster and More Efficiently Read More »

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 Remove Components Attached to GameObjects

Tips and Tricks: Remove Components Attached to GameObjects in Unity Introduction Using the power of components to drive game design is what makes developing with Unity so flexible and easy to use. Building around singular behaviors and reusing them across your game makes for better code that is easy to understand. There are tons of …

Unity Remove Components Attached to GameObjects 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 »