AssetsService¶
Service for managing/creating assets
Inherits: Instance
Methods¶
NewAsset(assetClassName: string) → BaseAsset¶
Create new asset with the class name
NewPTImage(imgID: number) → PTImageAsset¶
Create new image from Polytoria with the target ID
NewPTAudio(audioID: number) → PTAudioAsset¶
Create new audio from Polytoria with the target ID
NewPTMesh(assetID: number) → PTMeshAsset¶
Create new mesh from Polytoria with the target ID
GetFileLinkByPath(path: string) → FileLinkAsset¶
Retrieve FileLinkAsset with the specified path
GetFileLinkByID(id: string) → FileLinkAsset¶
Retrieve FileLinkAsset with the specified ID