UgameFeature: Automatic Code Generation for Unity Game Projects

Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

59 Downloads (Pure)


Computer games are complex software systems, which means that their development requires some level of programming skills. However, their design also involves the creation of game objects (characters, scenarios, etc.), animations and story lines, which are designed by game domain experts, who in general have minimal (or no) programming skills. Game engines have been developed to facilitate game development by reducing programming efforts and enhancing productivity, but we observed that most of these engines still require programming skills in order to be used. In this paper, we discuss how Model-Driven Engineering technologies, particularly metamodelling and model transformations, can be used to facilitate game development. We define a Domain Specific Language called UGameFeature to be used by game designers to define games that can be automatically transformed into scripts that can be executed by the Unity game engine. In order to facilitate the code generation step, we defined an intermediate metamodel, so that structural differences between the UGameFeature metamodel and the Unity engine scripts can be accommodated by an intermediate model-to-model transformation. We claim that with this approach we could define a streamlined process to go from game design to game implementation, in this way surpassing the benefits already offered by game engines. We also discuss some practical obstacles of applying MDE techniques and give recommendations to practitioners who want to apply them in their projects.
Original languageEnglish
Title of host publicationProceedings of the 10th International Conference on Model-Driven Engineering and Software Development, MODELSWARD 2022, Online Streaming, February 6-8, 2022
EditorsLuís Ferreira Pires, Slimane Hammoudi, Edwin Seidewitz
Number of pages8
ISBN (Electronic)978-989-758-550-0
Publication statusPublished - 2022
Event10th International Conference on Model-Driven Engineering and Software Development, MODELSWARD 2022 - Virtual
Duration: 6 Feb 20228 Feb 2022
Conference number: 10

Publication series

ISSN (Electronic)2184-4348


Conference10th International Conference on Model-Driven Engineering and Software Development, MODELSWARD 2022
Abbreviated titleMODELSWARD 2022


  • Model-Driven Engineering
  • automatic code generation
  • Unity
  • game software


Dive into the research topics of 'UgameFeature: Automatic Code Generation for Unity Game Projects'. Together they form a unique fingerprint.

Cite this