Can someone please explain to me what are statics? What are they used for? When are they really useful?
When you say “statics” i’m not sure if you mean static classes, static variables or what, but basically something static is not dependent on a reference to the object, and is global in your scripting. So you can have a static class like “MyStaticClass” and from any script you can reference to it without knowing about it, just using “MyStaticClass” as if it were a local variable you had assigned that script to.
Hope that is all true and makes sense, somebody will probably come along with a more thorough and clear explanation than I can!
When I say “statics” I mean static variables, methods, and classes.
Thank you BTW.
There’s a video tutorial on statics: http://unity3d.com/learn/tutorials/modules/intermediate/scripting/statics
Plus I do like the MSDN documentation (it’s available in a lot of languages): static modifier - C# reference | Microsoft Learn