Calling Functions From Another Script (441379)

Is it possible to call functions in a script not attached to any GameObjects?

I’m trying to make a library script that just contains a bunch of utility routines common to my other scripts. It seems silly to have to add it as a component to every object in the scene. Is there a way around this?

I would probably make a singleton-esque empty GO in the scene called “GameManager” or something, and put it on there. Assuming this would be the only object in the scene with this script, then you could make all the functions static; then you could call them from any script without having a reference cached to the component/GO.

Will do; thanks!

If you make your methods static, you won’t even need to attach the script to a GameObject.