Unity 3D中单例模式的设计与应用  

Design and Application of Singleton Pattern in Unity 3D

在线阅读下载全文

作  者:邓伟 DENG Wei(School of Computer Science and Technology,Kashi University,Kashi 844000,Xinjiang,China)

机构地区:[1]喀什大学计算机科学与技术学院,新疆喀什844000

出  处:《喀什大学学报》2020年第6期61-64,共4页Journal of Kashi University

基  金:新疆维吾尔自治区高校教学改革研究项目“面向应用型人才培养的数字媒体技术专业转型发展研究”(2017JG113).

摘  要:单例模式是软件开发中一种重要的设计模式,在Unity 3D虚拟现实和游戏设计开发中,一般常用于管理器类的设计,实现场景切换中对象的唯一性及持久化.为此,在分析单例模式的设计原理基础上,根据Unity 3D中管理器类设计是否继承MonoBehaviour类构建了两类单例模式,并结合Unity 3D开发中特定的应用场景,给出了单例模式的应用与实现.Singleton mode is an important design mode in software development.In Unity 3D virtual reality and game design and development,it is commonly used in the design of Manager class to realize the uniqueness and persistence of objects in scene switching.This paper analyzes the design principle of singleton pattern,and constructs two kinds of singleton patterns according to whether the manager class design in unity3d inherits the Monobehaviour class.Finally,the application and implementation of the singleton mode are given in combination with the specific application scenarios in Unity 3D development.

关 键 词:Unity 3D 单例模式 设计 应用 

分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象