Navigation
API > API/Plugins > API/Plugins/ShaderAuditCore > API/Plugins/ShaderAuditCore/FShaderAuditSession
Description
Detect sub-object materials produced by FCompactFullName::AppendString flattening. Returns true if Path has consecutive duplicate path components (e.g. MI_Name/MI_Name/), which indicates the Package/Object boundary with sub-objects after it.
| Name | DetectSubObject |
| Type | function |
| Header File | /Engine/Plugins/Developer/ShaderToolkit/Source/ShaderAuditCore/Public/ShaderAuditSession.h |
| Include Path | #include "ShaderAuditSession.h" |
| Source | /Engine/Plugins/Developer/ShaderToolkit/Source/ShaderAuditCore/Private/ShaderAuditAssetRegistry.cpp |
static bool DetectSubObject
(
const FString & Path,
FString & OutOuterPackage,
FString & OutOuterLeafName,
FString & OutSubObjectLeaf
)
Parameters
| Name | Remarks |
|---|---|
| OutOuterPackage | The outer asset's package path (e.g. "/Game/Wraps/MI_Wrap_Denim") |
| OutOuterLeafName | The outer asset's leaf name (e.g. "MI_Wrap_Denim") |
| OutSubObjectLeaf | The sub-object leaf name after the last '.' (e.g. "CharacterOpaque") |