Target is not Placeholder-Class

Hi, i need some help from you, guys!
I have an AI, where i use Get player Character -> Cast to PlayerBP -> Get (or Set) <VariableName> construction. I updated the project to 4.10.2 and a strange bug appeared. I have a TestMap level, which is editor startup map, and there is an instance of my AI on this level. When i delete this instance, save the level and restart UE, a lot of errors appear: nodes require Placeholder-Class Player instead of usual Player Class. And if i set another level as an editor startup map, errors disappear.


I get the same errors in the log when i package my project for Windows. Does anyone know if i’ve done something wrong in my project or it is an Unreal Engine bug? I found similar issue on AnsweHub: [4.9.2] Widget Component Class resets - UI - Epic Developer Community Forums. Does my error associated with the same bug (UE-21098)?

im not sure, but did you try to connect target to Cast to player ?

CriErr, I can’t connect CastTo and SetTargetActor because incompatible type Player Ref and Placeholder-class Player Ref. If you mean connect target to CastTo without special nodes below SetTarget - same issue after restart UE.

Delete the bad node compile . Then drag out from the cast to player node as player and try to set it again .

I tried it a few times, but did not help

What exactly is the set node? From youre blueprints you are setting target in the enemy bp but then trying to set something fron youre player bp?

There is part of the AI blueprint on the screenshot. SetTarget is parent function for all AI blueprints, that is why it’s target is self. After the function runs, i need to assign null to the TargetActor in PlayerBP. So that is what Set does.

Can you post the targetActor variable from the player bp and also the details panel I think the problem is there.

Did you mean this panel?