bool IsGameResource { get; set; }

robot_2Generated
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 can access it directly from an instance of the Editor.AssetType class. This property is read-only and returns a boolean value.

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
    // For example, load the asset in a game-specific way
}