Essential Systems / Object Manager
Object Manager
Enjoying Essential Systems?Leave a reviewLearn to use the included object manager.
Setup
- Create a
Resourcesfolder anywhere in the project. - Inside it, create an
Objectsasset via Create → Essentials → Objects → Objects. - 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
Objectsasset 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

