Objects
Objects are a way to store a list of essential and universally used objects that can be easily fetched from any script.



Last updated
Objects are a way to store a list of essential and universally used objects that can be easily fetched from any script.



Last updated
public class TestFetcher : MonoBehaviour
{
private void Start()
{
GameObject ball = Objects.Get("ball"); // fetches the object from the mapping
Instantiate(ball, transform.position, Quaternion.identity); // spawns it
}
}