Unity: Fade Out GameObject Many of the fancier effects achievable in Unity have roots in fairly basic operations, and one of the most common is making a GameObject fade in and out of sight. There are a few ways to get this done; we will discuss three of them. 1. Change the GameObjec...
Learn how to optimize your game's performance by testing against hardware platform memory limitations with the profile memory usage tool in your Unity project.
Unity has a built-in physics engine that controls the motion of bodies, handles collisions, and adds the effect of external forces on objects. This is all implemented using theRigidbody2Dcomponent. However, for characters, it is useful to have a more flexible tool that interacts with the phys...
So in order to fully understand how to Destroy a GameObject in Unity, you also need to understand how to Instantiate an object. Create a new script (or use one already in progress) and add a new public GameObject variable, as above. Then go back to the Inspector and add a prefab to ...
How to create an interactable object in Unity How to make a damage system in Unity using an interface When to use an interface in Unity (instead of something else) How to make a state machine in Unity (using interfaces) So, what exactly is an interface in Unity?
Setting the position of a transform overview Once you have a variable referencing the target transform there’s a few ways you can move it. These methods are explained in more detail below! Directly set the position property to change the world position of the object. Directly set the localPos...
This chapter is a guide to the Unix commands and utilities that will be referenced throughout this book. This is preliminary material, and you may ...
While these aren’t all the options the user can change, this article should give any Unity developer an idea of how to create a graphics settings menu.As there are quite a few moving parts outside of the code, this tutorial is primarily focusing on the coding work involved in making a...
Advanced Version: A complete library to fully integrate Unity and Arduino which users thread for an efficient two-ways asynchronous communication. This solution is discussed in the post titledAsynchronous Serial Communication. Conclusion Last year at GDC a guy approached me and asked my opinion about...
How to change a DataGrid cell's background color using a converter? How to change a listbox item height dynamically? How to change a namespace and automatically all the references are updated? How to change a TreeView expander to a png (or bmp) How to change Assembly Name of WPF projec...