I am creating a complex behavior for my companion that fires at enemies as they appear. My companion is a character with a behavior component and a perception component that includes two checks on the sight layer mask, the player layer and the enemies layer.
I have no issues having my companion following the player but I don't know how to make the condition of my companion seeing runtime generated enemies. I have tried for it to have the condition with a GameObject prefab of those enemies but it does not seem to work since the conditions is never matched.
Am I doing something wrong?
Customer support service by UserEcho