OnActionReceived is not called

My agent is initialized, CollectObservation runs once, OnEpisodeBegin runs on every death but OnActionReceived is never called. What can I do?

1 Like

I tried RequestAction(), vectorAction is full of zeros every time…

1 Like

Hello,

Are you running a training session, or are you simply performing inference with a heuristic method? If it is inference with a heuristic, then you should expect all zeros, unless you have written a custom heuristic.

Hi I am facing the same problem, I am running training.

1 Like

make sure you have a decision requester attached (or you are manually calling the requests via code)

Problem can be if you forgot to add your custom script inherit from Agent. Insted Unity added Agent script itself.

are you have the"Decision Requester"Component?