Hello guys,
I am working on c++ class derived from an Actor class, for which I need custom Details Panel. I tried following this tutorial, but don’t know how to enable disable properties of my actor class.
for example: If I change value of on property in the class another one should disappear or get disabled.
I got this working but done know how to disable another Property if a particular one changed to specific value.
#if WITH_EDITOR
void ASDK::PostEditChangeChainProperty(FPropertyChangedChainEvent & PropertyChangedEvent)
{
// Get all the actor components
TArray<UActorComponent*> actor_components;
GetComponents(actor_components);
// Get name of the property changed
FName PropertyName = (PropertyChangedEvent.Property != nullptr) ? PropertyChangedEvent.Property->GetFName() : NAME_None;
printD(*PropertyName.ToString(), FColor::Green, 10);
// Call the base class version
Super::PostEditChangeProperty(PropertyChangedEvent);
}
#endif
Please let me know if my question is incomplete or I am not describing the problem appropriately.
Thanks in advance guys.