Detect Collider

Hi,

I need detect collider like box collider. When player Detect collider that time I want to add my feature for the game. I have checked related that. I found Detect trigger for use override method using DetectObjectAbilityBase. Can you please share details regrading how to detect collider on object with player.

I have added simple collider code in script and attach that script on player. But it's not work for me. I can't detect any collider.

Thanks.
 
Detect Object Ability Base will fire a raycast so it can detect any type of collider. Ensure your collider is not a trigger and the parameters for this ability are set to be able to detect the object. You can also compare against the interact chest in the demo scene since that uses this method to detect an object.
 
Top