RepositoryC#SEThụy Điển
Habrador

Habrador/Unity-Programming-Patterns

Implementations of programming design patterns in Unity with examples in C# when to use them.

2.1ksao
275fork
2issue
1lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: object-pool

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: flyweight-pattern

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: observer-pattern

#1 Repository Của Tuần

🎮 Từ Command đến Object Pool: Bộ công cụ design patterns thiết yếu cho dự án Unity

Tập hợp 20+ mẫu thiết kế lập trình trong Unity bằng C#, từ nổi tiếng (Singleton, Observer) đến hiếm dùng (Dirty Flag, Spatial Partition).

Đây là kho lưu trữ mã nguồn minh họa cách áp dụng các design patterns trong Unity, chủ yếu tham khảng từ cuốn Game Programming Patterns. Dự án giúp bạn hiểu không chỉ là what mà còn when và why nên dùng từng pattern — tránh dùng chúng như công cụ bế tắc.

✨ Điểm nổi bật

  • 23 patterns được triển khai: từ Command, State, Observer đến Double Buffer, Bytecode, Spatial Partition.
  • Ví dụ thực tế trong Unity: mỗi pattern đi kèm mô tả ngắn và mã nguồn minh họa.
  • Chia thành 3 nhóm: Architectural (MVC), Design (Singleton), Anti-patterns (God Object).
  • Tập trung vào game development: không phải toàn bộ design patterns chung, mà là những gì thực sự áp dụng được trong lập trình game.
  • Nguồn tham khảo đa dạng: kèm link đến sách, blog và tài liệu liên quan để đọc sâu.

💡 Vì sao đáng chú ý

Không phải là thư viện dùng sẵn, mà là kho tài nguyên học tập. Bạn được phép tùy biến, thử nghiệm cách triển khai để phù hợp với dự án thực tế. Đặc biệt hữu ích cho nhà phát triển đang tìm hiểu cách cấu trúc code sạch trong Unity.


#Unity3D #DesignPatterns #CSharp #GameDevelopment #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryC#
QianMo/Unity-Design-Pattern

:tea: All Gang of Four Design Patterns written in Unity C# with many examples. And some Game Programming Patterns written in Unity C#. | 各种设计模式的Unity3D C#版本实现

4.7k
Feb 6, 2020
RepositoryPython
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

375.7k
Sep 15, 2026
RepositoryC#
Unity-Technologies/ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.

19.8k
Oct 20, 2026
RepositoryC#
Perfare/AssetStudio

AssetStudio is a tool for exploring, extracting and exporting assets and assetbundles.

15.6k
Dec 8, 2022
RepositoryC#
egametang/ET

Unity3D Client And C# Server Framework

9.9k
Aug 26, 2026
RepositoryC#
Perfare/Il2CppDumper

Unity il2cpp reverse engineer

9.6k
Aug 18, 2024
RepositoryC#
BepInEx/BepInEx

Unity / XNA game patcher and plugin framework

8.9k
Oct 23, 2026
RepositoryC#
AssetRipper/AssetRipper

GUI application to analyze game files

8.7k
Oct 20, 2026
RepositoryC#
mob-sakai/UIEffect

UIEffect is an open-source package that allows you to intuitively apply rich UI effects directly from the Inspector or via code. Combine various filters, such as grayscale, blur, and dissolve, to decorate your UI with a unique visual style!

7.7k
Aug 27, 2026