I am working on a VR game where the player can teleport himself to different locations by pointing with the controler on them. I have set up one BP called “spawnlocation” which has only a static mesh and i can change the material. I want those spawnlocations to be only visible when the player is pushing the trigger and when the trigger is released I want the spawnlocations to be invisible again.
I have created a boolean variable in the player character called “isShooting” which i edit when the trigger is pressed. Now the spawnlocation BP should check if this variable is true and then i want to toggle the visibility. The isShooting variable is set to global but somehow i cant manage to toggle the visiblity.
I have searched the complete internet for an answer but somehow I cant find anything useful or I cant undestand something…
Can you guys help?