M. Editor

M. Editor

Unity – MoveTowards

Unity MoveTowards presentation

In Unity, the static method MoveTowards of the Vector3 structure allows us to smoothly move our GameObject to a target position by specifying a maximum distance to cover per frame. Table of contents MoveTowards Basic Usage How do you make…

Unity AddComponent: Enhance GameObjects

Unity AddComponent Presentation

In Unity, the “AddComponent” feature simplifies the process of enhancing GameObject functionality. With a simple click in the editor’s inspector, users can effortlessly append diverse components to their Unity objects. Table of contents AddComponent dynamically AddComponent in Editor AddComponent custom…

Unity Custom Inspector / Editor

Unity Custom Editor

In Unity, a custom editor empowers us to modify the behavior of the editor for a MonoBehaviour or ScriptableObject. This allows us to customize the inspector by adding new information or completely transforming it. Custom inspector in one of my…

Find Editor and Player Log Files in Unity

Unity logs

In the Unity environment, two types of logs are commonly used: logs originating from the editor and logs from a built version of the game (Player Log). Each platform stores these logs in different locations: Table of contents Unity Editor…

Raycast and Overlap in Unity

Unity raycast presentation

In this comprehensive guide, we delve into the powerful tools of raycast and overlap within Unity, offering a detailed exploration of their functionalities and applications. Table of Contents Common Parameters Basic Raycast (Physics.Raycast) Raycast All Raycast NonAlloc RaycastHit BoxCast SphereCast…

Converting Float to Int in Unity

Unity float to int

In Unity, converting a floating-point number (float) to an integer (int) is a common operation and can be done in several ways. This article will guide you through the different functions to use for this conversion depending on your use…