Overview Forums Tutorials Wiki API Account News › Forums › RAIN › General Discussion and Troubleshooting › How Change the Sensor Range by Code This topic contains 4 replies, has 2 voices, and was last updated by prime 1 year, 4 months ago. Viewing 5 posts - 1 through 5 (of 5 total) Author Posts February 27, 2022 at 9:03 pm #8676 YaguzParticipant Hello, anyone knows how to change the sensor range by code? Thx! March 4, 2022 at 12:49 am #8934 primeKeymaster VisualSensor sensor = ai.Senses.GetSensor("Sensor Name") as VisualSensor; sensor.Range = 100f; March 14, 2022 at 4:22 pm #9846 YaguzParticipant Hi! Thx for the answer! But i cant access the type VisualSensor. Do I have to add any kind of library?I’m only using: using UnityEngine; using System.Collections; using System.Collections.Generic; using RAIN.Core; using RAIN.Action; Thx! March 16, 2022 at 2:58 pm #9953 primeKeymaster using RAIN.Perception; using RAIN.Perception.Sensors; March 16, 2022 at 2:58 pm #9954 primeKeymaster using RAIN.Perception; using RAIN.Perception.Sensors; Author Posts Viewing 5 posts - 1 through 5 (of 5 total) You must be logged in to reply to this topic.