I've just been avoiding creating things in functions, for no other reason than not being sure what happens (to the local object(s)) when you return either an entity or type. I guess there's no such thing as a local type instance and, when returning entities, you pass back the reference to the object's location and can free it by referring to whatever you called the function with (ie mySkyBox.skyBox=createSkyBox()).
I'm just being daft and worrying about nothing, but hoping somebody else would say "you're just being daft and worrying about nothing". :D
I'm just being daft and worrying about nothing, but hoping somebody else would say "you're just being daft and worrying about nothing". :D