Ben Traje
← BackContent Hub

Unity

U
unitygamedevphysicscsharpgame-architecturetutorial

Unity Physics Guide: 3D vs. 2D Colliders and the Z-Axis Trap

Understand the critical differences between Unity's 3D (PhysX) and 2D (Box2D) physics engines. Learn when to use which, compatibility rules, and how to avoid common Z-axis collision bugs.

H
unityc-sharpgame-development

How to Attach and Toggle Weapons in Unity

Learn how to parent a weapon to a hand bone socket in Unity and toggle its visibility using a C# script and Animator parameters.

A
unity3dc-sharpeditor-scriptingtechnical-animationautodeskmaya

Automating Unity Animator Controllers with C# Editor Scripts

Learn how to programmatically create, modify, and manage Unity Animator Controllers using C# Editor scripts. Automate state machines, parameters, and transitions to streamline your animation pipeline.

B
unityc-sharpgame-developmentgame-aimovetowardsaggro

Building Enemy Aggro with Vector3.MoveTowards in Unity

Learn how Vector3.MoveTowards works in Unity, why it is ideal for simple enemy aggro behavior, and when to use alternatives.

H
unitygamedevcsharpshadersoptimizationurp

How to Change Individual Object Colors with One Material in Unity Using MaterialPropertyBlock

Learn how to dynamically change the base color of individual GameObjects in Unity sharing a single material asset without creating expensive material clones or breaking GPU batching.

U
UnityGame DevelopmentCharacter ControllerGame PhysicsC#

Unity Character Movement: Character Controller vs. Rigidbody Explained

A concise guide on Unity character movement architectures, exploring the differences between the built-in Character Controller and Rigidbody, and why attaching colliders to animated bones causes physics glitches.

H
UnityC#Game DevelopmentPhysicsRigidbodyGame Design

How to Create a Real-Time Physics Attractor and Custom Gravity in Unity C#

Learn how to build a real-time object attractor using Unity C# Rigidbodies, smooth physics damping, and how to apply custom gravity values instead of the default -9.81 m/s².

M
autodeskmayaunityunity3dcsharpgamedevshadergraphprefab

Mastering Unity Prefabs: Instantiation, Transform Offsets, and Shader Graph Integration

Overcome common Unity 3D headaches by mastering Prefab variants, the Child Offset Pattern for instantiating transforms, and modifying Shader Graph properties via C# scripts at runtime.

H
riggingeyesautodeskmayaunityfbx3d-modeling

How to Fix FBX Pivot Points Snapping to Center in Unity

Learn why Unity resets your Maya or C4D FBX pivot points to the mesh center and discover the fastest ways to fix it, starting with a simple editor toggle.

G
unitygodotcsharpgamedevgame-architecturescripting

Godot Signals in Unity: UnityEvents vs. C# Actions Guide

Learn the direct equivalents to Godot Signals in Unity. Discover when to use UnityEvents for Inspector workflows and C# Actions for performant code, plus critical tips to prevent memory leaks.

U
unity

Unity Info Dump

Just a place to dump info before I categorize them.

U
UnityGame DevelopmentC#TilemapUnity 2DGrid Movement

Understanding Unity Grid Movement: Legacy 1D-to-2D Coordinate Math vs Modern Grid Components

Learn how manual 1D-to-2D grid movement works in Unity, demystify state variables like currentTile, and discover why switching to Unity's native Grid and Tilemap system simplifies 2D game development.

U
unity

Unity: OnTriggerEnter vs. OnCollisionEnter

Understand the differences between Unity's OnTriggerEnter and OnCollisionEnter methods, their setup requirements, and when to use each for optimal gameplay physics

H
UnityGame DevelopmentCSharpGame ArchitectureUnity Scripting

How to Prevent Race Conditions in Unity Using Awake and Start

Learn how to avoid script execution order race conditions in Unity using the two-phase Awake vs. Start initialization pattern, Script Execution Order settings, and dependency patterns.

P
unityshader graphhlslgame developmentprocedural generation

Procedural Stripe Shaders in Unity: Dynamic Patterns with HLSL

Learn how to create dynamic, evenly spaced procedural stripes using Unity's Shader Graph and HLSL Custom Function nodes. Perfect for customizable items like Easter eggs.

P
unitycsharpgamedevproceduralgame-architecturetechnical-art

Procedural Mesh Generation in Unity: Building a Heightmap Terrain in Start()

Learn how to generate a custom subdivided mesh plane at runtime in Unity, sample height from a texture with GetPixelBilinear, and configure 32-bit index buffers.

H
unitycsharpgamedevinput-systemautodeskmaya

How to Build a Start and Restart Game Loop in Unity (New Input System)

Learn how to manage game states, freeze time, and detect multi-device 'press any button' inputs (Keyboard, Mouse, Gamepad) using Unity's New Input System.

U
unityresourcesfree

Unity Character Controller

A living index of free Unity tools, C# scripts, and assets. Just my personal curated reference list for whatever I’m working on right now.

U
unityresourcesfree

Unity Free Resources: Developer Toolkit and Archive

A living index of free Unity tools, C# scripts, and assets. Just my personal curated reference list for whatever I’m working on right now.

U
unityresourcesenvironment

Unity Grass Movement & Shaders: A Curated Resource Guide

A consolidated roundup of the best Unity grass movement resources, shaders, and tutorials to help you build your environments faster.

U
unity-3dgame-developmentrigidbody-physicsc-sharp-scriptingcharacter-controller

Unity Physics: Rigidbody AddForce vs. linearVelocity

A concise guide to choosing between Rigidbody.AddForce and linearVelocity in Unity, and how they compare to the CharacterController for precise game movement.

U
unityresourcesfree

Unity Free Resources: Developer Toolkit and Archive

A living index of free Unity tools, C# scripts, and assets. Just my personal curated reference list for whatever I’m working on right now.

U
unitycsharpgamedevprogrammingoptimization

Unity C# Architecture: Utility Scripts vs. MonoBehaviours

Stop attaching every script to a GameObject. Learn to use static utility classes and plain C# objects to improve performance and project organization.

U
unitycsharpgamedevgetcomponent

Unity C# Best Practices: Component Fetching, Input Systems, and Clean Utility Classes

O
autodeskmayablenderunityshadersgame-devoptimization

Optimizing 3D Geometry in Unity: Vertex Colors vs. Textures for Game Performance

Discover why vertex color masking and point data tagging outperform multi-material workflows and heavy texture maps in Unity, backed by GPU memory and draw call benchmarks.