Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
C# Procedural Random Dungeon Generator in Unity 3D & Blender
Rating: 4.9 out of 5(184 ratings)
1,439 students

C# Procedural Random Dungeon Generator in Unity 3D & Blender

Learn interior-only random dungeon generation using a geomorph method that connects modular rooms and hallways in C#
Created byBilly McDaniel
Last updated 3/2025
English

What you'll learn

  • Develop a procedural dungeon generator that assembles rooms and hallways dynamically using C#.
  • Create modular room and hallway prefabs in Blender and import them into Unity for use in procedural generation.
  • Write C# scripts to connect rooms at runtime, ensuring seamless and randomized dungeon layouts.
  • Implement backtracking and collision detection logic to refine dungeon structure and prevent placement issues.
  • Spawn interactive objects, doors, and exit triggers dynamically to enhance level variety.
  • Optimize procedural generation performance for smooth gameplay and resource efficiency.

Course content

5 sections31 lectures6h 16m total length
  • Course Overview1:13

    Welcome to C# Procedural Random Dungeon Generator in Unity 3D & Blender! In this course, you’ll learn how to create randomly generated dungeons using C# scripting and modular prefabs.

    We’ll start by preparing Blender assets and importing them into Unity, then move on to C# scripting to generate seamless dungeon layouts. By the end of this course, you’ll have a fully functional procedural dungeon system that you can expand with your own custom rooms and features.

  • Setup Unity Project1:55

    Follow along as we set up the Unity project that will serve as the foundation for this course. You’ll see exactly how the project is configured, ensuring everything is ready before we dive into procedural generation.

  • Blender Configuration3:30

    Learn how to configure Blender’s interface for a smoother workflow, adjusting key settings to improve efficiency and usability. These small tweaks will help you work faster and more comfortably.

  • Export From Blender & Import to Unity5:47

    Understand the process of exporting 3D models from Blender as FBX files and importing them into Unity. Learn how to configure External Materials, properly assign missing textures, and ensure your models are game-ready.

  • 3D Models Overview17:45

    Get a detailed look at the modular room and hall models included in this course. Learn how to manipulate these assets in Blender and create new variations by following key design principles for seamless procedural connections.

  • Setting Up Unity Prefabs13:41

    Set up Unity prefabs using the imported FBX models. By the end of this lecture, you’ll understand how to convert your 3D models into reusable prefabs, ensuring a smooth workflow for procedural generation.

  • Configure & Setup Lighting13:50

    Learn how to configure deferred lighting in Unity to achieve optimal visual results. We’ll walk through creating a Light Prefab and properly placing lights within each room and hall, ensuring a well-lit and immersive dungeon environment.

Requirements

  • Basic familiarity with Unity – You should understand how to create projects, manage GameObjects, and use prefabs.
  • Some experience with C# scripting – Prior programming knowledge is required, as this course focuses heavily on procedural logic.
  • Blender experience is helpful but not required – Pre-made 3D models are included, but an understanding of Blender will help if you want to customize or expand your modular assets.
  • A willingness to work with code – This course involves structured, logic-driven programming to build a complete procedural system.

Description

Create endless, dynamically generated 3D dungeons using C# and modular assets in Unity!

This course will teach you how to build a procedural dungeon generator that assembles randomly connected rooms and hallways using a geomorphic system. Each room and hallway prefab seamlessly connects at 90-degree orientations along the north, south, east, and west entry points, allowing for limitless dungeon variations.

What You'll Learn:

Write a complete procedural dungeon generator in C# that dynamically assembles modular dungeon layouts.
Manipulate prefabricated rooms and hallways in Unity to create seamless, randomly generated interiors.
Export modular assets from Blender to Unity as FBX files and convert them into prefabs for procedural use.
Understand geomorphic dungeon generation and how to design prefabs that interconnect at fixed entry points.
Expand your dungeon system by designing custom rooms and hallways that integrate with your procedural algorithm.

This course is designed for intermediate Unity developers who want to add procedural dungeon generation to their projects. We’ll jump straight into writing structured, efficient C# code, focusing on how to create dynamic, ever-changing dungeons using a prefab-based geomorph system.

Whether you're developing rogue-like games, RPG dungeons, or randomized environments, this course will provide the tools you need to implement a powerful procedural generation system in Unity.

Enroll now and start building your own procedural dungeons in Unity today!

Who this course is for:

  • Unity game developers looking to create randomized environments for roguelike, RPG, or adventure games.
  • C# programmers interested in learning how to build complex procedural systems from scratch.
  • Indie game developers who want to integrate unique, dynamically generated levels into their projects.
  • Developers working with modular 3D assets who want to generate seamless, connected environments.
  • This course does not cover beginner-level Unity or C# basics—students should already have some experience in these areas before enrolling.