Megacrush Unity Assets
API DocumentationOther Links
Metadata Driven Development
Metadata Driven Development
  • Overview
  • Sample Spreadsheet
  • BG Database Configuration
    • First Steps
      • Setting up BG Database Locally
      • Creating an Import Job for Google Sheets
    • Import & View Metadata
    • Configuring a new Table
  • Code Architecture
  • Video Walkthrough
  • GameData Scriptable Object
    • The New Item Wizard (Editor tool)
  • Get the Project
  • BG Database Documentation
Powered by GitBook
On this page
  1. GameData Scriptable Object

The New Item Wizard (Editor tool)

Example editor tool to manage / update the game data.

PreviousGameData Scriptable ObjectNextGet the Project

Last updated 6 months ago

Included in the Sample project is an editor tool that allows you to quickly add elements into the GameData scriptable object.

As you might guess, if you have a lot of items in your game (weapons / creature etc), adding them all into the scriptable object GameData AND spreadsheet can become a bit laborious.

This tool is designed to simplify the process.

The first thing we want to do is create all of the prefabs for the raw assets (FBX files) in the game.

Simply multi-select the objects and then drag & drop onto the New Item window above (in the drag & drop area).

This will show you a list of all of the prefabs that you are going to create, like so:

Clicking the 'Create' button at the bottom will create prefabs for all of the FBX files (in the _Game/GameData/Prefabs folder) and ALSO adds their corresponding entries into the GameData Scriptable Object!

Ready to create prefabs & add the entries into the Game Data Scriptable object!