Announcement

Collapse
No announcement yet.

On clicked event not working when linked to a variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    On clicked event not working when linked to a variable

    So I have an array of 3 Static mesh. I just want to get one of the static mesh (cubes) and then apply on it an "onclicked" event.

    I get the cube and set it as a variable named "cube click" and then apply the onclick event to the variable "cube click". My problem is that the onclicked event doesn't trigger...


    Please some ideas why this approach is not working?


    #2
    Please any ideas! I am completely stuck... the selection of the mesh works, I can apply any transformation to it... but when I try to apply an event to the variable it doesn't trigger!

    Comment


      #3
      Again I discovered the answer to my questions from another place... not many help from this forum. I will text the solution since maybe someone else will have the same problem.

      I did solve this by changing the approach and using "get hit result under cursor by channel" combined with the "break hit result". This way you can take the name of the component you are hitting with the cursor from "break hit result" and then check if it is the same name as the variable "cube click".

      Comment

      Working...
      X