bool HasCompiledFile { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The HasCompiledFile property of the Editor.Asset class indicates whether the asset has a compiled file associated with it. This property returns true if the asset is not just a source file but also has a compiled version available.

Usage

Use the HasCompiledFile property to determine if an asset has been compiled. This can be useful when you need to check if an asset is ready for use in its compiled form or if further compilation is necessary.

Example

// Example of checking if an asset has a compiled file
Editor.Asset asset = GetAsset();
if (asset.HasCompiledFile)
{
    // The asset has a compiled file
    // Proceed with operations that require the compiled file
}
else
{
    // The asset does not have a compiled file
    // Consider compiling the asset or handling it as a source file
}