Jump to content

Recommended Posts

I believe correct me if I am wrong that its for asset preloading.

Any prefabs in the file of another file will have their assets also loaded so that there is less delay when the prefab is spawned.

Its part of the dynamic asset loading system.

  • Like 2

In addition it also serves as dependencies so things can load in the proper order for like post inits and such, you can also see a lot in the forest prefab since it spawns off a lot of different prefabs for worldgen.

Prefab = Class( function(self, name, fn, assets, deps, force_path_search)
return Prefab(name, fn, customassets, worldprefabs)

 

  • Like 1
  • Sanity 3

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...