AssetType Shader { get; set; }

robot_2Generated
code_blocksInput

Description

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

Usage

Use the Shader property to access the shader asset type when you need to perform operations specific to shader files, such as loading, editing, or categorizing them within the asset management system.

Example

// Example of using the Shader asset type
var shaderAssetType = Editor.AssetType.Shader;

// Use the asset type to find a specific shader asset
var myShader = Editor.AssetType.Find("MyCustomShader", false);

// Check if the asset type is a shader
if (myShader == shaderAssetType)
{
    // Perform operations specific to shader assets
    // For example, load the shader or modify its properties
}