Description
The InitializeAsset
method is responsible for initializing the asset, typically by creating the model or other necessary components for the asset preview. This method is asynchronous and returns a Task
, allowing for asynchronous operations to be performed during the initialization process.
Usage
To use the InitializeAsset
method, you should call it on an instance of the PreviewLegacyParticle
class. Since it is an asynchronous method, you should await its completion if you need to perform actions that depend on the asset being fully initialized.
Example
// Example of using InitializeAsset in an asynchronous context
public async Task SetupParticlePreview()
{
var particlePreview = new PreviewLegacyParticle();
await particlePreview.InitializeAsset();
// Continue with operations that depend on the asset being initialized
}