PostEditChange() delegate

I believe I’ve figured it out as close as I’m going to get it, but I’ve also run into a wall.

So in the engine PostEditChangeProperty() broadcasts an event to OnObjectPropertyChanged. So I set this up:


AActor * Actor = GetOwner();
DelegateHandles.Add(
    FCoreUObjectDelegates::OnObjectPropertyChanged.AddRaw(Actor, &UOctaneComponent::OtherComponentPropertyChanged)
);

This kicks back an error that the second argument must be an AActor::* expression, not a UOctaneComponent::* expression.

So I tried moving the expression into a class that inherits from AActor, but I get the same error.

Basically it seems to suggest that AActor can add delegate listeners for AActor events but UOctaneComponent can never add delegate listeners for AActor events.

This is a huge problem. There are many situations where a plugin developer cannot modify a user’s custom class to add the code this needs, but still need to be able to track events for custom user objects. Likewise it’s unrealistic to expect a user to download a custom build of the engine just to add some custom code to AActor.

Am I looking at this the right way?