Posts by sabithpocker

    I have some image and video hotspots that I am using as image and video popups in VR Devices. It looks like the following (a video popup):


    Here I want to place a close button top-center but the problem is that I am not able to position the close button based on height of the popup as I am not setting any explicit width/height for popup, it has to be based on the image/video original size.

    My question is, is it possible to get native width/height/bounding-rectangle of a hotspot to calculate the position of the close button like ath + height/2 or so?

    Any other idea to solve this close button position is also obviously a great help. I saw that layers or parent-child has issues in VR thats why I am trying flat / single level of hotspots.

    This is the code I use to add close button: hotspot[popup] is the video/image popup shown in above image


    Peace,