Jul 14, 2022Why to Normalize movement in game devAfter some time in game dev, I found that using Normalize() or normalized was really necessary, but I didn’t understand why. Here a brief explanation. Requirements: You need to know what is: Vector Magnitude Pythagoras theorem Movement in game dev Let’s analyze a 2D movement When the player presses the up button, the object moves…Gamedev2 min readGamedev2 min read
Sep 29, 2021Organizing your UI for better performance in UnityUnity suggests to have static Canvas and active (dynamic) Canvas It is due to canvas dirty, it is, when you update the canvas, Unity needs to re draw each UI element If you separate them, you can have static images and text to avoid re drawing them Also it is…1 min read1 min read
Sep 29, 2021Basics of Optimization in UnityLet’s say we put a cube in the scene and attach material which color will be modified in Update()Unity3 min readUnity3 min read
Sep 29, 2021Optimizing CoroutinesIn a game, we can have a GC (Garbage Collection) like this: It’s not so much, but it is better to improve its performance After diving into the EnemyDamage code, we may find this coroutine:Unity2 min readUnity2 min read
Sep 29, 2021Using the Unity ProfilerTo open the Profiler, you can use Ctrl+7 or While in Play mode:Unity2 min readUnity2 min read
Sep 29, 2021Creating an AWS Manager in UnityAfter creating the Asset bundle, it’s time to upload it to AWS S3 Uploading files to AWS S3 Log in into your AWS console and go to S3 Create a new bucket, I’ll call it asset-bundles-ar If you want, you can copy the bucket config from a previous oneUnity2 min readUnity2 min read
Sep 28, 2021Asset Bundles for UnityIn Unity Manual, Asset Bundle is defined as an archive file that contains platform-specific non-code Assets (such as Models, Textures, Prefabs, Audio clips, and even entire Scenes) that Unity can load at run time. …Unity2 min readUnity2 min read
Sep 27, 2021Setup Vuforia with UnityThe Unity version I will use is the 2021.1.22 Register on Vuforia developer webpage Download the Vuforia Unity package here Drag and drop the package into our project. If it asks for updating the package, click on Update Click RMB on hierarchy to create an AR Camera and remove the…Unity3 min readUnity3 min read
Sep 27, 2021Scriptable Objects in UnityThis is a description of Scriptable objects from Unity Manual — ScriptableObject A ScriptableObject is a data container that you can use to save large amounts of data, independent of class instances. One of the main use cases for ScriptableObjects is to reduce your Project’s memory usage by avoiding copies…Unity4 min readUnity4 min read
Sep 25, 2021Understanding callbacksAfter some years of coding, I found myself watching code with callbacks, and although I practiced several times and watched several videos, I couldn’t understand it well. Today I’ll write this blog in the hope of being useful for others First, we need to see a common example Piece…Unity4 min readUnity4 min read