Essential Systems / Object Manager

Object Manager

Enjoying Essential Systems?Leave a review

Learn to use the included object manager.

Setup

  1. Create a Resources folder anywhere in the project.
  2. Inside it, create an Objects asset via Create → Essentials → Objects → Objects.
  3. Select the asset and add entries under Mappings. Each entry has a Reference string used to fetch the object at runtime.

There must be exactly one Objects asset in the project. Either remove the one at Objects → Demo → Resources → Objects or reuse it.

Weighted mappings

Under Weighted Mappings, you can assign multiple objects to a single reference, each with a weight. Higher weight means a higher chance of being selected.

Fetching an object

public class TestFetcher : MonoBehaviour
{
    private void Start()
    {
        GameObject ball = Objects.Get("ball");
        Instantiate(ball, transform.position, Quaternion.identity);
    }
}
Last updated