The BuiltinResource class is a base class for all resources that are builtin in RSX.
Users should never sub-class from this class, Resource should be used instead.
Returns a resource handle.
Determines if the resource is destroyed.
This can happen when the Resource was forcefully unloaded or reverted. For this reason, it is safer to hold on to a instead of directly referencing a resource pointer, as the current Resource can always be retrieved via .value.
Resource
Returns the meta data of this resource.
Name of the resource. Use primarily for easier identification and not important to the engine itself.
Returns a universally unique identifier of this resource.
Duplicates the resource and creates a unique UUID for the duplicated resource.
The duplicated resource or null, if the duplication failed.
Virtual
Method called by RSX to perform actions required after the creation of the resource.
Method called by RSX to perform any operations needed after deserialization.
Use this API to restore your serializable data into live objects.
Method called by RSX to disable the resource.
Use this API to deactivate the resource before it is serialized.
Method called by RSX to enable the resource.
Use this API to activate the resource after it has been disabled by serialization.
Method called by RSX to perform initialization of the resource.
Use this API to initialize data and default construct all fields.
Method called by RSX to perform any operations before serialization.
Use this API to bake your live data into serializable data.
Reverts the resource to the on-disk representation.
This is a potentially expensive call, as it needs to deserialize and replace all existing in-memory resource handles.
Forcefully unloads the resource.
The BuiltinResource class is a base class for all resources that are builtin in RSX.
Note
Users should never sub-class from this class, Resource should be used instead.