Gamedevbeginner.com

Scriptable Objects in Unity (how and when to use them)

Scriptable Objects are a type of class in Unity that can be used to create multiple instances of a script that each contain their own unique values. But how is that different to any other … See more

Actived: 6 days ago

URL: https://gamedevbeginner.com/scriptable-objects-in-unity/

State Machines in Unity (how and when to use them)

WEBPlayMaker State Machines (great for fast results) PlayMaker uses state machines to control Unity. Which, if you’re new to Unity, or even if you’re not, can make …

Category:  Health Go Health

Inheritance in Unity

WEBOne of the most useful aspects of object-oriented programming, which Unity uses, is Inheritance, which allows one class to use, or inherit, the functionality of …

Category:  Health Go Health

How to use Get and Set (without crashing Unity)

WEBThe get and set accessors give you custom control over this process meaning that, instead of changing the public variable, you can use them to change the …

Category:  Health Go Health

Events & Delegates in Unity

WEBIn Unity, it’s possible to create modular connections between scripts and objects by using events and delegates, which allow you to trigger game logic as it …

Category:  Health Go Health

Interfaces in Unity (how and when to use them)

WEBWhen to use an interface in Unity (instead of something else) The purpose of an interface is to allow a class to interact with classes of different types, but in a generic …

Category:  Health Go Health

How to keep score in Unity (with loading and saving)

WEBIt works in a similar way to counting the score for the amount of time elapsed except that while, before, the score was counted every second the game was still going, …

Category:  Health Go Health

How to get a variable from another script in Unity (the right way)

WEBIn the Player Health script, I’ve created a public Audio Source variable.. Like this: public class PlayerHealth : MonoBehaviour { public AudioSource …

Category:  Health Go Health

What Public, Private, and Protected mean in Unity

WEBThe public keyword in Unity is an Access Modifier, which defines the accessibility level of whatever you put it in front of. In this case, making something public …

Category:  Health Go Health

How to make an inventory system in Unity

WEBPlain class variables vs structs. In this example, I’ve used a plain class to create an object as a variable inside of another script. This works by creating a script …

Category:  Health Go Health

How to use script composition in Unity

WEBBack in the Health script, add the Unity Events namespace and a new Unity Event, called On Health Zero. Then, every time the health is changed, check to see if …

Category:  Health Go Health

Serialize Field in Unity (how it works and when to use it)

WEBAnd if they’re private, Unity doesn’t serialize them, so they don’t show up. The Serialize Field attribute forces Unity to serialize a private field, meaning that other …

Category:  Health Go Health

Create a Low-Health Audio Filter in Unity, Using the Audio Mixer

WEBUnity’s Audio Mixer provides all kinds of possibilities for manipulating audio signals. In this post I’m going to explain how I use Audio Mixer Snapshots and the …

Category:  Health Go Health

How to Destroy an object in Unity

WEBTo destroy an object in Unity, simply call the Destroy function, passing in a reference to the object that you want to destroy. Like this: Destroy(Object …

Category:  Health Go Health

How to use Debug Log in Unity (without affecting performance)

WEBOption 2: Use a custom Debug function. One option for disabling log messages in your finished project is to create a custom debug function inside a static …

Category:  Health Go Health

How to use Player Prefs in Unity

WEBPlayerPrefs.SetFloat("dialogueVolume" + slot, dialogueVolume); } This allows you to save and load different versions of the same data, without changing the key. …

Category:  Health Go Health

Enemy AI in Unity

WEBEnemy AI, in this case, generally refers to the ability of any non-player object, whether it’s hostile or not, to change its behaviour in response to the events of your …

Category:  Health Go Health

The right way to Lerp in Unity (with examples)

WEBDifferent easing effects can be achieved with different calculations. For more curve formulas, try chicounity3d.wordpress.com or this article at febucci.com.. While …

Category:  Health Go Health

10 Unity Audio Tips (That You Won’t Find in the Tutorials)

WEBSet the mixer volumes for each Snapshot. You guessed it. Turn down the fader for the “Off” Snapshot to -80 and for the “On” fader set the volume to -0.05db …

Category:  Health Go Health