Hi fellow developers,
We’ve thought about tidying up our code as apposed to have the entirety of it in the one file… we’ve thought about modulizing different objects of ours that get spawned into their own separate classes/files.
2 questions have arised;
-
is it easier to have the functions related to the objects in their own class? and how would these functions get called?, or
-
is it best to leave the functions in the main block of the scene and get called like usual…
we’ve run into a few issues of trying to call methods of our objects and not entirely sure if it’s related to knowing which object is meant to be calling the function when it should or we are just doing it wrong
the main question here is:
how can we pin point objects created from modules in the main scene