Hotspot location in relation to screen and repositioning layers

  • Hello, I'm trying to position layers in relation to hotspots but am running into questions about how to reposition layers when the hotspot is too close to the edge of the screen. For example, by default I have a layer that is aligned 'lefttop' from the hotspot (parent). It works great when I am in fullscreen, when I click on the hotspot the layer (text box) shows up next to it. However when I turn the 360 the hotspot is closer to the edge of the screen and the layer then gets cut off. How do I dynamically place the layer to the opposite side if the hotspot's location is too close to the edge?


  • How do I dynamically place the layer to the opposite side if the hotspot's location is too close to the edge?

    You can change the layer edge property.
    Here is the action example, it works better if your layer aligned to "top"

    and call it on hotspot click

    Code
    change_edge(get(name), layername, offsetvalue)


    layername - name of the layer child of the hotspot
    offsetvalue is a number for example: 50

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!