Toggle Visibility

I am creating a VR project where the player can pick and throw some cubes around the map and i wanted to create a blueprint so when the player picks a cube up a highlight will pop up indicating that you can pick up the object and when you drop it the highlight will disappear. What i want to do is when i pick up my highlighted cube it will then disable the cubes highlight.

Have you tried turning the boolean on or off in the “Toggle Visibility” node and tried “Propagate to Children”? At the moment both are set to off.

If you have a question you want to ask… well ask it.

Have you confirmed that the BP_MotionController cast is succeeding?

Yes I have didn’t work for me

How do I disable visibility of my object when it is picked up

Yes it does work

I think i know what you mean but my code is in level blueprint and my pick up has its own blueprint how can I make my InteractEffect recognisable, when i copy it over to my pick up blueprint I get unknown blueprint.

236423-picture.png

So at first, when you overlap with this object, it correctly highlights, right?
You try to toggle visibility when an overlaps ends, but if you hold an object, the overlap still happens.

Try to attach a toggle visibility node to your pickup logic.

Move your interact effect logic to your Motion Controller blueprint. Motion controller should check whether it overlaps with something - if this something is a pickable object you should toggle appropriate visibility.

Could you provide a screenshot to help elaborate

Actually it is you who should provide us with more screenshots - in this case, the logic of picking up an object (BP_MotionController event graph).

The logic of pick up I am using is the default BP_MotionController (as it came have not added anything)and my blueprints above are located in the level blueprint. If you still need pictures I will upload them in the morning. Thanks

Ok. BP_MotionController is written poorly and is hard to read, I would like to know reasons why event tick is so heavily used there, but anyways…

I’m posting the place where you should place your effect. It should not be hard from no on. If you need a reference to an object your hand is interacting with it is returned as “Nearest Mesh” in GetActorNearHand function.

Thank you I will let you know how it goes