Creates a new script code resource with the specified source code.
Optionaluuid: UUIDOptionalisInternalConstructor: booleanSets the source code contained in the resource.
Indicates the major version of the engine that this resource was created at.
Indicates the minor version of the engine that this resource was created at.
Sets the declaration contained in the resource.
The flags for the code.
Returns a reference handle for this resource.
Determines whether the JavaScriptCode is compatible with the current engine version.
Determines whether the JavaScriptCode was created on an older engine version.
Returns the meta data of this resource.
Indicates the minimum major version of the engine required to load this JavaScript code.
Indicates the minimum minor version of the engine required to load this JavaScript code.
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.
Determines whether the JavaScriptCode is compatible with the specified major and minor engine version.
Virtual
Method called by RSX to perform actions required after the creation of the resource.
Forcefully unloads the resource.
The JavaScriptCode class implements a Resource that contains cooked JavaScript game or editor code.