Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

2. First Steps

Lucas Vilas-Bôas edited this page Apr 18, 2023 · 1 revision

Asset Manager

A useful tool to manage asset data. This system is capable of categorize and query assets to asynchronously load and unload items at runtime when it's needed. The Asset Manager is a unique object, a singleton that exists in the Editor and packaged projects.

You'll be using the Asset Manager to load/unload soft references.

Configuration

Before starting using the plugin, you'll need to setup Asset Manager to work with the item datas:

  1. Go to Project Settings -> Game -> Asset Manager
  2. Create a new entry on Primary Asset Types to Scan
  3. Set Primary Asset Type to: ElementusInventory_ItemData
  4. Set Asset Base Class to: ElementusItemData
  5. Add Directories for each folder that will contain item datas in your project's content
  6. Expand Rules and set Cook Rule to Always Cook

Example

image

Plugin's Tools

image

About

This plugin adds 2 editor tools to assist the items management while developing a project.

Item Creator

image

This tool allows the user to create new Item Data in the target directory. The Asset Folder value is related to the directories added in the Asset Manager settings page (Item 5 of Configuration Steps).

Note: Item ID must be unique! This ID will be used by the plugin to load the items using the Asset Manager.

Items Manager

image

A custom window to view, search, filter and manage the existing item datas directly in Editor. This window contains a table listing all items in the registered directories ((Item 5 of Configuration Steps), allowing the developer to check the member values of each item.