Anyway the solution was found here:
https://stackoverflow.com/questions/740937/accessing-variables-from-other-namespaces
Key Lessons for Unity Projects:
- Own Namespace (best practice) - Probably good practice to change default unity project script with its own namespace. This is probably good so you don't have conflicts when you bring in 3rd party assets and c# plugins. Probably annoying to setup, but i can imagine this helping tons in big multi-user projects (like the one i'm working on)
- static variables - sort of like a global variable that shouldn't change much, and here's the kicker - can be accessed everywhere. "A static class cannot be instantiated. All members of a static class are static and are accessed via the class name directly, without creating an instance of the class." This is handy because I don't want to instantiate the class a million times.
PS - I need to play around with https://catlikecoding.com/unity/tutorials/flow/texture-distortion/
No comments:
Post a Comment