bool IsGameResource { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The IsGameResource property indicates whether the asset type is a custom game resource. This boolean property is part of the Editor.AssetType class and is used to determine if the asset type is specifically designed for game resources, as opposed to other types of assets that might be used in different contexts.

Usage

To use the IsGameResource property, you need to have an instance of the Editor.AssetType class. You can then access this property to check if the asset type is a game resource. This can be useful when filtering or categorizing assets based on their intended use.

Example

// Example of checking if an asset type is a game resource
Editor.AssetType assetType = Editor.AssetType.Model;

if (assetType.IsGameResource)
{
    // Perform actions specific to game resources
    Console.WriteLine("This asset type is a game resource.");
}
else
{
    // Handle non-game resources
    Console.WriteLine("This asset type is not a game resource.");
}