setAppAlias(appAlias)
Assigns a value to the alias of the application for the current request.
Returns
Not applicable.
Parameters
Name | Type | Description | Required |
appAlias | string | The alias of the application to which a value must be assigned. | ✅ |
Usage example
In this example, the API sets SpaceTravel
as the value of the alias
of the application.
PCore.getAssetLoader().setAppAlias('SpaceTravel');
Previous topic register(name, loaderFn) Next topic APIs in the AsynchronousUtils class