C++ Construction Script Not Working

Hello,

I’ve been trying to dynamically change a UStaticMesh in the editor using C++, but the Construction Script I’ve implemented isn’t working. I even tried printing to the screen, but it didn’t work either. I’ve been researching this for the past two days, and I’ve tried everything I found, but nothing seems to be working. I even reached out to a forum for help, but I’m still stuck and don’t know what to do next.

If anyone has any suggestions or could assist me in resolving this issue, I would greatly appreciate it.

Thank you in advance for your help.

Add virtual and override keyword to PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) function:

That’s how I’m using:

.h

#if WITH_EDITOR
	virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
#endif

.cpp

#if WITH_EDITOR

void AMyClass::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
{
	// ....

	Super::PostEditChangeProperty(PropertyChangedEvent);
}

#endif
2 Likes

I sent this a long time ago but thanks anyway.