getAsset
Summary
Retrieve a registered file asset by its virtual path.Signature
Parameters
path
Type:string
Virtual path of the asset (e.g. “/textures/hero.png”).
Returns
Type:NfFile
Retrieve a registered file asset by its virtual path.
Retrieve a registered file asset by its virtual path.
string
Virtual path of the asset (e.g. “/textures/hero.png”).
NfFile
Retrieve a registered file asset by its virtual path.