bool IsTrivalChild { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The IsTrivalChild property indicates whether the asset was generated from another asset's compilation and does not have its own source asset. This is typically the case for assets like model break gibs, .vmdl files, .vtex files for materials, and similar assets that are derived from other primary assets.

Usage

Use the IsTrivalChild property to determine if an asset is a derivative of another asset and lacks its own source. This can be useful for filtering or processing assets that are not primary and are instead generated as part of another asset's compilation process.

Example

// Example of checking if an asset is a trivial child
Editor.Asset asset = GetAsset();
if (asset.IsTrivalChild)
{
    // Handle the asset as a trivial child
    // This might involve skipping certain operations
    // or handling it differently in asset management
}