Navigation
API > API/Plugins > API/Plugins/PCG
Base class to be specialized for specific UObject sub-classes that support PCG object hashing
Context is responsible for triggering event (OnChanged) that would invalidate the FPCGObjectHash and also provide logic for what properties need to be hashed.
| Name | FPCGObjectHashContext |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Hash/PCGObjectHash.h |
| Include Path | #include "Hash/PCGObjectHash.h" |
Syntax
class FPCGObjectHashContext
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPCGObjectHashContext
(
UObject* InObject |
Hash/PCGObjectHash.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FPCGObjectHashContext() |
Hash/PCGObjectHash.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Changed | FPCGObjectHashContextChanged | Hash/PCGObjectHash.h | ||
| HashPolicies | TArray< const IPCGObjectHashPolicy * > | Hash/PCGObjectHash.h | ||
| Object | TWeakObjectPtr< UObject > | Hash/PCGObjectHash.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T * GetObject() |
Hash/PCGObjectHash.h | ||
bool IsValid() |
Hash/PCGObjectHash.h | ||
FPCGObjectHashContextChanged & OnChanged() |
Hash/PCGObjectHash.h | ||
| Hash/PCGObjectHash.h | |||
bool ShouldHashSubObject
(
const UObject* InObject |
Hash/PCGObjectHash.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddHashPolicy
(
const IPCGObjectHashPolicy* InPolicy |
Hash/PCGObjectHash.h | ||
| Hash/PCGObjectHash.h | |||
virtual bool ShouldHashSubObjectInternal
(
const UObject* InObject |
Hash/PCGObjectHash.h | ||
virtual bool ShouldHashTransientProperties() |
Hash/PCGObjectHash.h |