Ok,
So i have my “factory” class which holds some functions and variables/objects (eg. glow filters) used globally by many different instances. But every time I want to use somthing I am currently initiating a new object every time in the function. This is not good and can make the code messy. Is there a way I can have any instance anywhere being able to refference to this factory class without having to have the refferences passed to it previously. I guess what I am asking for is a global refference.
I hope this is easy to answer,
Thanks for reading/helping,
Dan