# Manager Window

## I**ntroduction**

Before we get started, you can find the manager window under **Unity menu → Tools/TRavljen/UnitSystem Manager**.

This window serves as a utility for managing assets that derive from the **ManagedSO** class type. It simplifies the creation and organisation of ScriptableObjects, including:

* **Resource**\*
* **Resource Node**\*
* **Research**\*
* **Production Attribute**
* **Faction**
* **Unit Type**
* **Unit**\* *(and its deriving types)*
* **Entity**\* *(and its deriving types)*

> **Note**: Some of these assets (marked with `*`) derive from **AProducibleSO**, which defines common structures like **costs** and **requirements** for objects that can be produced by core systems.

Assets like **Resource, Research, and Faction** do not include prefabs for in-game instantiation (e.g., resources rely on a separate **Resource Node** asset). Only **Entity** and **Unit** types support **Prefab references** for in-world instantiation.

***

## **Overview**

The **UnitSystem Manager** is designed to handle **ManagedSO data**, using **Inspector-like behaviour** with additional management tools.

#### **1. Selection, Search, and Creation Controls**

* Select the **type** of ScriptableObject to manage.
* Use **search** to filter database entries.
* Create, duplicate, or delete assets.
* If the selected type allows multiple creation types, a dropdown appears for selection.

#### **2. List of Database Entries**

* Displays available database entries filtered by the selected type.
* Clicking an entry loads its details in the inspector-like panel.

#### **3. Inspector-Like Details Panel**

* Displays and allows editing of the selected **ScriptableObject** properties.
* Works similarly to Unity’s **Inspector**, ensuring a familiar editing experience.

#### **4. Prefab Management Section**

* Adds **extra controls** for managing **Prefab references** in **Entity** and **Unit** assets.
* Provides options to **Open, Update, or Remove** associated prefabs.
* Streamlines handling of prefab-based objects directly from the editor.

<figure><img src="https://3582497942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy2G6fDLEPuCAcuABMl6j%2Fuploads%2FlGxhpe0Q3PtF824xB0Vp%2FManager%20Window%20-%20Layout.png?alt=media&#x26;token=60739da0-e009-4ba2-bcdd-886ca717328c" alt=""><figcaption><p>UnitSystem Editor Window</p></figcaption></figure>
