Skip to content

AssetService

Inherits Instance

Service for managing assets

Static Class

This object is a static class. It can be accessed by using its name as a keyword.

Additionally, it cannot be created in the creator menu or with Instance.New().

Not newable

This object cannot be created by scripts using Instance.New().

Methods

NewAsset → BaseAsset

Parameters: assetClassName [ string ]

Create new asset with the class name

NewPTImage → PTImageAsset

Parameters: imgID [ number ]

Create new image from Polytoria with the target ID

NewPTAudio → PTAudioAsset

Parameters: audioID [ number ]

Create new audio from Polytoria with the target ID

NewPTMesh → PTMeshAsset

Parameters: assetID [ number ]

Create new mesh from Polytoria with the target ID