[SOLVED] I don’t want events to occur on hotspots hidden behind 3D objects.

  • After loading the 3D object using a depthmap, I placed polygon hotspots on top of it.

    The code for creating the hotspot is below:

    After setting depthbuffer to true, I was able to hide the hotspot behind the 3d object.

    However, mouse events still occur even though the hotspot is not visible because it is obscured by a 3D object.


    [SOLVED]

    It was solved by setting hittest on depthmap to true.

    Edited once, last by di0deman (August 8, 2024 at 3:12 AM).

  • di0deman August 8, 2024 at 3:09 AM

    Changed the title of the thread from “I don’t want events to occur on hotspots hidden behind 3D objects.” to “[SOLVED] I don’t want events to occur on hotspots hidden behind 3D objects.”.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!