load
Loads texture resource via file path.
Note: For complex or high-resolution resources that require significant processing time, it is strongly recommended to leverage coroutines for loading. This approach prevents blocking the main thread, ensuring a responsive and fluid user experience.
Return
The TextureResource which load.
Parameters
The given path.
The different ways of loading type, default is FROM_ASSETS.
The texture resource creating option.
Throws
If an error occurs during the loading process.
Loads texture resource via file path.
Return
The TextureResource which load.
Parameters
The given path.
The different ways of loading type, default is FROM_ASSETS.
Throws
If an error occurs during the loading process.
Note: For complex or high-resolution resources that require significant processing time, it is strongly recommended to leverage coroutines for loading. This approach prevents blocking the main thread, ensuring a responsive and fluid user experience.