Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

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?