MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / GetGUID

Method GetGUID

Source/PCGExtendedToolkit/Private/Misc/PCGExWriteGUID.cpp:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void FPCGExGUIDDetails::GetGUID(const int32 Index, const FPCGPoint& InPoint, FGuid& OutGUID) const
78{
79 const uint32 SeededBase = bUseSeed ? InPoint.Seed : 0;
80 OutGUID = FGuid(
81 GridHash,
82 bUseIndex ? Index : -1,
83 UniqueKeyReader->IsConstant() ? HashCombine(SeededBase, static_cast<uint32>(UniqueKeyReader->Read(Index))) : SeededBase,
84 bUsePosition ? PCGEx::GH3(InPoint.Transform.GetLocation() + PositionHashOffset, AdjustedPositionHashCollision) : 0);
85}
86
87PCGEX_INITIALIZE_ELEMENT(WriteGUID)
88

Callers 2

ExecuteInternalMethod · 0.80
ProcessSinglePointMethod · 0.80

Calls 3

GH3Function · 0.85
IsConstantMethod · 0.45
ReadMethod · 0.45

Tested by

no test coverage detected