Interact Interface Not Calling Interact Function


Author - Cameron Euston


The Problem:

This week I ran into an issue when working on the interact system. The issue was when I would try to interact with a key collectable, it would print the debug message in the blueprint implementable function but not run the code in the interact function in the interface. The interact function was calling the blueprint function but would not run the code in the interact.

The Solution:

I set up debug breakpoints in every place that interact was called. I then found out that none of the breakpoints were hit when I tried to interact. I then went and looked at all references of the blueprint function. This led me to the function in the player that casts line traces to interact with interactable objects. This was only calling the blueprint function and not the interact function. I then switched it to call the interact function and it worked as intended.

Leave a comment

Log in with itch.io to leave a comment.