Hey everyone - I’m getting a really weird bug within my scripts and I was hoping someone could help me out. I’m using a first-person character controller, and the controller starts inside a trigger volume (representing a water volume - you start underwater). I have a script on the controller that allows you to press a button to change certain values on the character controller - among them the “Slope Limit” value. In specific, you start underwater and you can press the “3” button to change your slope limit from 65 to 85.
The weird part is that every time I change the slope limit - even if I’m running the game and just change it via the inspector sidebar rather than pressing a button to activate the script - it activates the “OnTriggerEnter” function for the volume (which happens to play a splash sound effect, which is how I noticed it). Changing any of the other values doesn’t seem to have this effect as far as I can tell, just the Slope Limit. Every time I change it, I get feedback that indicates that I have just entered the trigger volume, even though I never left it.
Any ideas why this is happening and how I stop it?