LoadPtfxAsset

The SD.LoadPtfxAsset module is designed to efficiently manage the loading of particle effects assets within a game environment, ensuring proper validation, loading, and timeout management.

Overview

Purpose: Loads a specified particle effects asset dictionary, performing all necessary checks and conversions, and manages the loading process asynchronously with a timeout to ensure efficient game performance.

Parameters

  • asset (string): The name of the particle effects asset dictionary to be loaded. It must be a valid string representing an asset within the game's resources.

Usage Example

-- Example of loading a particle effects asset
SD.LoadPtfxAsset('core')

Last updated