Description
The UpdateScene
method is responsible for updating the scene within the asset preview. This method is typically called to advance the state of the scene based on the provided cycle and time step parameters. It is a virtual method, allowing derived classes to override its behavior if necessary.
Usage
To use the UpdateScene
method, you need to have an instance of the AssetPreview
class. Call this method with the appropriate cycle and time step values to update the scene's state.
Example
// Example of using UpdateScene method
AssetPreview assetPreview = new AssetPreview();
float cycle = 1.0f; // Example cycle value
float timeStep = 0.016f; // Example time step value (approximately 60 FPS)
// Update the scene with the given cycle and time step
assetPreview.UpdateScene(cycle, timeStep);