AI Perception - Sight AISenseConfig_Sight.h

I’m not 100% sure but I checked the parent-class and this class and then did a search across the entire solution and there is no SetPeripheralVisionAngle() method. The only SetPeripheralVisionAngle() that exist are in PawnSensing. But Pawnsensing has nothing to do with AIPerception. Looks like a copy-paste mistake.

/** How far to the side AI can see, in degrees. Use SetPeripheralVisionAngle to change the value at runtime. */
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Sense", config)
float PeripheralVisionAngleDegrees;

Same problem in the AIPerceptionComponent (which is deprecated anyway):

/** How far to the side AI can see, in degrees. Use SetPeripheralVisionAngle to change the value at runtime. */
DEPRECATED(4.8, "This property is deprecated. Please use appropriate sense config class instead")
UPROPERTY(VisibleDefaultsOnly, Category = AI)
float PeripheralVisionAngle;

Hey Napoleon,

After speaking with one of our developers, it appears that this comment is incorrect, and it will be fixed in an upcoming release.

As far as changing the value of PeripheralVisionAngleDegrees at runtime, this is not possible via blueprints. If you’d like to do it in C++, you’ll need to update the sense config, and then ask the perception component to reconfigure.

Have a great day