Description
The FrameScene
method is a public instance method of the Editor.Assets.AssetPreview
class. It is used to adjust the camera view to frame the scene within the asset preview. This method ensures that the scene is properly centered and visible within the preview window, providing a clear and focused view of the asset being previewed.
Usage
To use the FrameScene
method, you must have an instance of the AssetPreview
class. Once you have initialized your asset preview and set up the scene, you can call this method to automatically adjust the camera to frame the scene appropriately.
Example
// Assuming 'assetPreview' is an instance of AssetPreview
assetPreview.FrameScene();
// This will adjust the camera to frame the scene within the asset preview.