-
Notifications
You must be signed in to change notification settings - Fork 38
Asset Bundle System
cheese3660 edited this page Feb 27, 2023
·
2 revisions
As of 0.2.0 Space Warp provides an asset bundle loader that loads and caches all assets under SpaceWarp/assets/bundles
for internal Space Warp assets and ModFolder/assets/bundles
Asset bundles must have a .bundle extension
using SpaceWarp.API.AssetBundles
This loads an asset from a path and throws if it can't
This loads an asset from a path, and returns true if successful, otherwise, it returns false and sets asset to null
Paths are of the following format
[mod_id]/[bundle name without .bundle]/[path to asset in bundle without assets/]/
or for space warp internal assets
space_warp/[bundle name without .bundle]/[path to asset in bundle without assets/]/