Inherited AI Perception no longer works only for certain child classes。

AI Perception does not work for a specific child class, even though it has the exact same parameters as the parent class and has not been overridden. Other child classes work fine, and the class that is currently having problems was working until a few days ago. I have no idea what the cause is and I’m completely stuck.

I checked the following:

  • AI Perception is not destroyed and is activated.
  • Only one child class is having the problem, but it inherits all of its parameters from its parent just like the other child classes, so there’s no difference.
  • For the problematic class only, the OnTargetPerceptionUpdated event does not fire and PrintString does not return anything.
  • When I run the Activate function it works for a moment, then stops working.
  • The class that is currently having issues was working fine until a few days ago. No changes to AI Perception were made after that, and by the time I noticed it, it was broken.

Does anyone know why it doesn’t work under these conditions? I’m really confused and don’t know the cause.

Hello.

I can’t say for sure but it does sound like a child class corruption. I would duplicate it, re-parent the duplicate in class defaults and parent it back to the right parent class and see what happens. If the duplicate ends up working then it’s corruption. It’s known to happen.

If you haven’t setup source control yet, now might be a good time.

Delete all instances of this actor from the level and add a fresh one for testing.

Alternatively if you could migrate that class to fresh project I could have a look in more depth.

1 Like

I have experienced cases where inheritance did not work with experimental features, but I have never experienced inheritance breaking midway through a Blueprint.

This seems to be a typical example of “it broke even though I didn’t do anything”. I was just unlucky :cry:

1 Like