RayPerception for Different Behaviors

Hey,
When there is only one agent and one RayPerception, they work together automatically. But now, there are two agents and only one of them needs to use RayPerception.
How can I specify which agent will use the RayPerception?
Also, do I have to create different agents for each behavior? If so, how can I again specify, which agent will be responsible of which behavior?

RayPerceptionSensorComponent3D has an enables property, you can try to set it to false for one of them (not sure if you can have a feedback if it worked or not)
most likely, if you already trained an agent using it, and then you disable it, it will not be able to apply the model to get the right behaviour.

Yes, create two different agents with different behaviors. The RayPerception sensor is a component of an agent gameObject. You can simply not include the component on the agent that you don’t want to use the ray casts.