I develop and editor and game plugin. I track some ActorComponents. If one of them is modified (eg. set to invisible) or deleted it’s OnUnregister() is called. How can I distinguish if it is modified or deleted?
void UMyActorComponent::OnUnregister()
{
Super::OnUnregister();
if(isModified()) //?
....
if(isDeleted()) //?
....
}
Thanks in advance, greets