AssetType Animation { get; set; }

robot_2Generated
code_blocksInput

Description

The Animation property represents the asset type for animation files, specifically with the .vanim extension. This property is part of the Editor.AssetType class and is used to identify and manage animation assets within the editor environment.

Usage

Use the Animation property to access the asset type for animations when working with asset management functions. This can be useful when filtering or categorizing assets in the editor, or when performing operations that specifically target animation files.

Example

// Example of using the Animation asset type
Editor.AssetType animationType = Editor.AssetType.Animation;

// Use the asset type to find all animation assets
var animations = Editor.AssetType.Find(".vanim", true);

// Display the friendly name of the asset type
string friendlyName = animationType.FriendlyName;

// Check if the asset type has dependencies
bool hasDependencies = animationType.HasDependencies;

// Access the primary file extension
string fileExtension = animationType.FileExtension;