• Stars
    star
    3,947
  • Rank 11,066 (Top 0.3 %)
  • Language
    C#
  • Created about 8 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

Design Patterns Written in Unity3D

This repository is about cool design patterns written in Unity3D C#.

  • Now 23 Gang of Four Patterns have all been finished in Unity3D in this repository.
  • Each pattern contains the corresponding structure implementations, application examples and diagrams. Same way with Naphier/unity-design-patterns, in this repository each pattern is contained in a separate folder. Inside these are a folder ("Structure") to show what classes are used in the pattern's structure in Unity3D(with a scene) and a folder or folders ("Example") showing one or more real-world example of using the pattern in Unity3D along with a scene showing it in action. Each pattern folder may contain one or more Example.
  • Game design patterns from book Game Programming Patterns have been partially implemented.

此repo为Unity3D中各种设计模式的实践与运用。

  • 目前已经在Unity中实现了《设计模式:可复用面向对象软件的基础》一书中提出的23种设计模式。
  • 每种模式都包含对应的结构实现、应用示例以及图示介绍。类似Naphier/unity-design-patterns的结构,此repo中的每种模式用单独的文件夹分开。每种模式对应的文件夹中包含了名为“Structure”的子文件夹,里面存放的是此模式在Unity中的使用代码的基本框架实现,而另外包含的Example子文件夹中存放的是此模式在Unity中使用的实际示例。每种框架实现或实例示例实现都包含对应的场景,每种模式文件夹中可能包含一个或者多个Example。
  • 游戏编程模式》一书中介绍的常用游戏设计模式的Unity版实现也有部分实现。

Contents

I、Gang of Four Patterns in Unity (23种GOF设计模式的Unity实现)

Behavioral Patterns 行为型模式

Structural Patterns 结构型模式

Creational Patterns 创建型模式


II、Game Programming Patterns in Unity (《游戏编程模式》的Unity实现)


Reference resources(参考)

More Repositories

1

Game-Programmer-Study-Notes

⚓ 我的游戏程序员生涯的读书笔记合辑。你可以把它看作一个加强版的Blog。涉及图形学、实时渲染、编程实践、GPU编程、设计模式、软件工程等内容。Keep Reading , Keep Writing , Keep Coding.
8,620
star
2

Awesome-Unity-Shader

⛵ 关于炫酷的Unity3D Shader | About Cool Unity3D Shaders
ShaderLab
3,710
star
3

Real-Time-Rendering-4th-Bibliography-Collection

Real-Time Rendering 4th (RTR4) 参考文献合集典藏 | Collection of <Real-Time Rendering 4th (RTR4)> Bibliography / Reference
HTML
3,357
star
4

X-PostProcessing-Library

Unity Post Processing Stack Library | Unity引擎的高品质后处理库
C#
2,905
star
5

Real-Time-Rendering-3rd-CN-Summary-Ebook

📘 电子书 -《Real-Time Rendering 3rd》提炼总结 | 全书共9万7千余字。你可以把它看做中文通俗版的《Real-Time Rendering 3rd》,也可以把它看做《Real-Time Rendering 3rd》的解读版与配套学习伴侣,或者《Real-Time Rendering 4th》的前置阅读材料。
2,484
star
6

OpenCV3-Intro-Book-Src

📘《OpenCV3编程入门》书本配套源码 |《Introduction to OpenCV3 Programming》Book Source Code
C++
1,800
star
7

PBR-White-Paper

⚡️基于物理的渲染(PBR)白皮书 | White Paper of Physically Based Rendering(PBR)
1,686
star
8

GPU-Gems-Book-Source-Code

💿 CD Content ( Source Code ) Collection of Book <GPU Gems > 1~ 3 | 《GPU精粹》 1~ 3 随书CD(源代码)珍藏
C++
1,003
star
9

GPU-Pro-Books-Source-Code

💿 Source Code Collection of Book <GPU Pro> 1~ 7 | 《GPU Pro》1~ 7 书本源代码珍藏
GLSL
623
star
10

Direct3D-Win32-Book-Src-Code

《Windows游戏编程之从零开始》配套源代码 |《Dream Journey: Windows Game Programming From Scratch》 book source code
C++
182
star
11

Unity-Shader-Resources-List

📋 Unity Shader相关学习资源与链接珍藏 | A list of amazing resources for learning shader writing in Unity.
157
star
12

Unity-Mobile-Shader

Ready for Use Unity Mobile Shaders
ShaderLab
110
star
13

NPR-Cartoon-Shader-Library

NPR-Cartoon-Shader-Library for Unity3D
ShaderLab
74
star
14

Unity-Shader-Superb-Practice

Unity-Shader-Superb-Practice
GLSL
69
star
15

UE4-Battery-Collector

A Practice Game Project Using Unreal Engine 4.15 with C++
C++
35
star
16

Unity3D-Script-Library

A Script Library of Unity3D
C#
27
star
17

UE4-FPS-Game

A First Person Shooter Game Practice Project Using Unreal Engine 4.15 with C++
C++
27
star
18

Unity-Toolkit

Unity3D-Toolkit,Some usefull scripts
C#
24
star
19

Unity-StrangeIOC-Framework-Usage

Unity下IOC框架“StrangeIOC”的上手使用与实用性测试 | A trip to The Unity IoC/Binding Framework 'StrangeIOC'.
C#
23
star
20

Unity-Entitas-Framework-Usage

Unity下ECS框架"Entitas"的上手使用与实用性测试 | A Trip to The Entity–Component–System(ECS) Framework 'Entitas' in Unity
C#
23
star
21

Stock-Value-Calculator

📈一个最初版本花10分钟写出来的,供自己使用的Unity下的股票风控比率计算工具。
C#
23
star
22

X-PostProcessing-Gallery

Gallery Database for X-PostProcessing Library
22
star
23

Unity-Mirror-Reflection-Example

Unity3D Mirror Reflection Example||Unity3D镜面反射实现示例
JavaScript
22
star
24

UE4-Tank-Game

A Tank Battle Game Practice Project Using Unreal Engine 4.15 with C++
C++
20
star
25

UE4-Building-Escape

A Practice Game Project Using Unreal Engine 4.15 with C++
C++
16
star
26

Unity-Shader-From-Scratch

Re-understanding of Shader
GLSL
14
star
27

Unity-Shader-Practice

Shader-Practice
GLSL
13
star