CToolAsset
Overview
Asset loading with multi-plugin path adaptation. Automatically tries the AIO (All-In-One) plugin path first, then falls back to the original plugin path.
Functions
| Name | Description |
|---|---|
| retrieveAsset | Load an asset of type U from a soft class path. |
| retrieveClassOfAsset | Load a UClass for class C from a soft class path. |
| adaptAssetPath | Converts a plugin-specific path to the AIO plugin path (e.g. CdryxGameUPlugin → CdryxAIOUPlugin). |
// Load an asset
UMyDataAsset* asset = retrieveAsset<UMyDataAsset>(this, "/CdryxGameUPlugin/Content/MyAsset");
// Tries /CdryxAIOUPlugin/Content/MyAsset first, then /CdryxGameUPlugin/Content/MyAsset
// Load a class
UClass* clazz = retrieveClassOfAsset<AMyActor>(this, "/CdryxGameUPlugin/Content/BP_MyActor");