AssetType Animation { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Animation property represents the asset type for animation files within the editor. These files typically have the .vanim extension and are used to define animations for models or other assets in the game.

Usage

Use the Animation property to access the animation asset type when you need to work with animation files in the editor. This can be useful for filtering assets, loading animations, or performing operations specific to animation files.

Example

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

// Use the asset type to find all animation assets
var allAnimations = Editor.AssetType.All.Where(asset => asset == animationAssetType);

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

// Check the primary file extension
string fileExtension = animationAssetType.FileExtension;