Is there a way to temporarily disable collision detection on the Character?

xinoHITO

New member
I've checked tried changing the layer of my character's gameObject but it doesn't work. Then I checked and saw that if I change this layer mask it works but the property in code is Read-Only. I can edit the plugin's code but wanted to know if there's a way to avoid that.
 

Attachments

  • bsCsAp9bgM.png
    bsCsAp9bgM.png
    10 KB · Views: 1
Be careful changing layers during runtime.

You can use the state system to toggle the "Detect Horizontal/Vertical Collisions" properties on the UltimateCharacterLocomotion component.

1617353841532.png
 
Top