Skip to content
Type a keyword to search.
This page was translated with machine assistance. The Simplified Chinese version is the authoritative reference.

Official Open-Source Sample Projects

The ModSamples directory under the game installation directory contains official MOD project templates, reference projects, and script resources. When a new project is created in game, the game copies a new project directory from the corresponding template directory.

In-Game OptionTemplate DirectoryDescription
Simple MOD ProjectModProjectSuitable for creating story content, config tables, and resources from a basic project structure.
Professional MOD Project (requires Unity 2020.3.48f1)ModProjectProSuitable for professional MOD projects that need a Unity project and resource packaging workflow.
[Sample Project] Story Campaign Tutorial SampleExample_MapStoryIncludes examples for maps, map roles, items, stories, and triggers, useful for learning story campaign project structure.
[Sample Project] Game Map Open-Source SampleExample_GameMapProjectProvides a game map sample for referencing map projects, map resources, and map configuration.

Lua type reference files. Use them with a Lua editor to view hints for public game types, methods, and members.

Config table references and replaceable resource examples. Use them to look up fields, IDs, and resource override directory structures.

GUI project resource examples. Use them to learn UI package structure, UI resources, and FairyGUI project organization.

Lua script examples, including shared logic, GUI, mobile UI, and exploration-related scripts.

Model, skeleton, controller, and UnityPackage resource examples for creating role, weapon, and action resources.

Script interface references, including interface types callable from MOD scripts and examples of game command base classes.

Skill script text examples. Use them together with the battle skill command documentation to learn skill script syntax.