LS.Pack Class
Pack is an object that contain several resources, helpful when you want to carry a whole scene in one single file
Constructor
LS.Pack
()
Item Index
Methods
addResource
(
-
filename
Adds a resource to the prefab
Parameters:
-
filename
Stringfilename of the resource
configure
(
-
data
configure the pack from an unpacked WBin
Parameters:
-
data
Objectan unpacked WBIN (object with every chunk)
Pack.createWBin
(
-
fullpath
-
resource_names
-
metadata
-
mark_them
to create a WBin containing all the resource and metadata
Parameters:
-
fullpath
Stringfor the pack
-
resource_names
Arrayarray with the names of all the resources to store
-
metadata
Object[optional] extra data to store
-
mark_them
Boolean[optional] marks all the resources as if they come from a pack
Returns:
object containing the pack data ready to be converted to WBin
removeResource
(
-
filename
Remove a resource to the prefab
Parameters:
-
filename
Stringfilename of the resource