Meta library¶
Accessor¶
Returns a member variable value from a class (even private or non-uproperty)
It can be useful to get unexposed members without engine modification
Parameter | |
---|---|
Object |
Target object |
Offset |
Member offset |
Info
The offset of the variable can be found using the C++ part of the library. Ask on the discord if you need help to get a specific member offset
Warning
The offset may change between engine version
Example
A class with a private member we want to access
UCLASS(BlueprintType)
class AMyActor : public AActor
{
GENERATED_BODY()
public:
int PublicInt = 11;
private:
int PrivateInt = 99;
int PrivateInt2 = 88;
};
Make the function that will return our offset
nk_make_access_offset(AMyActor, PrivateInt);
// Generates NK::Access::GetPrivateIntOffset()