Le_sii
(Le_sii)
1
UPROPERTY( customthunk)
and
DECLARE_FUNCTION()
DEFINE_FUNCTION()
I can get address by Function
Stack.StepCompiledIn<FProperty>(nullptr).
but if I use on blueprint . It wil print error
PIE: Error: Blueprint Runtime Error: "Attempted to reference 'self' as an addressable property.".
I don’t know how to check next step is self node , or how to passed param self ref.
1 Like
PARAM_PASSED_BY_VAL(ParamA, FProperty, void*)
FProperty* ValueProperty1 = nullptr;
const void* ValuePtr1 = nullptr;
// The case that Self was passed in
if (ParamA == Stack.Object)
{
// Deal with Stack.Object directly
}
else
{
ValueProperty1 = Stack.MostRecentProperty;
ValuePtr1 = Stack.MostRecentPropertyAddress;
}
I think this is a work around
1 Like