Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Storing reference to World instance

Discussion in 'Project Tiny' started by reallyhexln, Apr 3, 2019.

  1. reallyhexln

    reallyhexln

    Joined:
    Jun 18, 2018
    Posts:
    69
    I have seen here the game where reference to ut.World instance is copying to singleton class where it's available to entire game.

    Currently, I have passing reference to World instance to all my services, and it's a very annoying task that takes so much time and makes API ugly.

    I know, it's a bad idea to store references to components, but what about storing references to World instance?