View by Component
Physics , Physics 2D , Audio , UI , Tilemap , Cinemachine , Timeline , Network , Animation , Animator , Sprites , Scripting , Tips , Colliders , 2D Colliders , Rigidbody , Rigidbody 2D , Interaction , Editor , Game Mechanics , In-App Purchase , Material , General , Prefab , ProGrids , Light , Rendering , Ads , Scriptable Objects , Events , Level Design , Making Of , Assets , Procedural , ProBuilder , Particles , Machine Learning , News & Announcements , Conference , Enemy & NPC , PlayerPrefs , Post Processing , Interview , Shader , VFX , TextMeshPro , InputSystem , XR
Procedural Generation Basics: Spawn A Grid In C# [Unity Tutorial]
Uploaded by Matt MirrorFishShare: Twitter Facebook
In this unity tutorial learn how to spawn a grid in C#. We will use nested for loops in C# to create a grid that could be used in procedural generation, grid based or turn based games in Unity. We are showing a 3D grid example made out of cubes but the same code will also work for spawning a 2D grid. This tutorial is created in Unity 2019 but will also work in older versions of Unity.