bool IsCompileFailed { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The IsCompileFailed property indicates whether the asset has failed to compile. This boolean property is useful for determining the compile status of an asset within the editor environment.

Usage

Use the IsCompileFailed property to check if an asset has encountered a compilation error. This can be particularly useful when managing assets programmatically, allowing you to handle errors or notify users of issues with asset compilation.

Example

// Example of checking if an asset has failed to compile
Editor.Asset asset = GetAsset(); // Assume GetAsset() retrieves an asset

if (asset.IsCompileFailed)
{
    // Handle the compile failure
    Log.Warning($"Asset {asset.Name} failed to compile.");
}
else
{
    // Proceed with operations on the asset
    Log.Info($"Asset {asset.Name} compiled successfully.");
}