Advanced Data Asset Plugin v1.0.0
AdvancedAsset
Loading...
Searching...
No Matches
UAdvancedDataAsset Class Reference

A class representing an advanced data asset, derived from UPrimaryDataAsset. More...

#include <AdvancedDataAsset.h>

Public Member Functions

virtual FPrimaryAssetId GetPrimaryAssetId () const override
 Retrieves the primary asset ID for this asset.
 
FName GetType () const
 Gets the asset type associated with this data asset.
 

Public Attributes

FName AssetId
 The ID of the asset.
 
TSoftObjectPtr< UTexture2D > DisplayIcon
 The display icon for the asset.
 
FString DisplayTitle
 The display title for the asset.
 

Protected Attributes

FName AssetType
 The type of the asset, used to categorize the asset.
 

Detailed Description

A class representing an advanced data asset, derived from UPrimaryDataAsset.

This class provides additional functionality to manage assets, including an asset type, display icon, and display title. The primary purpose of this class is to extend the functionality of the standard data asset with extra metadata and a method to retrieve the primary asset ID.

Member Function Documentation

◆ GetPrimaryAssetId()

FPrimaryAssetId UAdvancedDataAsset::GetPrimaryAssetId ( ) const
overridevirtual

Retrieves the primary asset ID for this asset.

Returns
FPrimaryAssetId The primary asset ID, constructed from the asset type and asset ID.

◆ GetType()

FName UAdvancedDataAsset::GetType ( ) const
inline

Gets the asset type associated with this data asset.

Returns
FName The name representing the asset type.

Member Data Documentation

◆ AssetId

FName UAdvancedDataAsset::AssetId

The ID of the asset.

This ID is used in conjunction with the asset type to uniquely identify the asset.

◆ AssetType

FName UAdvancedDataAsset::AssetType
protected

The type of the asset, used to categorize the asset.

Note
Must be set in the constructor, must be unique.

◆ DisplayIcon

TSoftObjectPtr<UTexture2D> UAdvancedDataAsset::DisplayIcon

The display icon for the asset.

This is a soft object pointer to a texture that represents the icon displayed for this asset.

◆ DisplayTitle

FString UAdvancedDataAsset::DisplayTitle

The display title for the asset.

This string holds the title that is displayed to the developer.


The documentation for this class was generated from the following files: