#dnSpy. Finding the reference to objects.
1 messages · Page 1 of 1 (latest)
decompilation is a topic that is not allowed to be discussed in this server
fair enough
would you happen to know which architecture unity uses for handling user data? Is there a name to it or does everyone just sets values somewhere in the script and call it globally?
wdym by "handling user data"?
For instance player inventory. A script loads the inventory and puts it somewhere
That's entirely up to how the game developer wants to handle it
In dependency injection, the classes are just given the data they need from someone else
Unity does something similar, so I wondered if there's an actual name for it
True, but unity must do something under the hood to make sure a script can pass data to another one
Again up to the developer
Fair enough. I thought there'd be a pattern most devs are recommend to follow, like how dotnet devs are strongly suggested to use dependency injection
Helps on finding more learning material when you can name a concept