VisibilityEnabler

    Enables certain nodes only when approximately visible.

    The VisibilityEnabler will disable and AnimationPlayer nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler itself.

    Note: VisibilityEnabler uses an approximate heuristic for performance reasons. It doesn’t take walls and other occlusion into account. The heuristic is an implementation detail and may change in future versions. If you need precise visibility checking, use another method such as adding an node as a child of a Camera node and/or .

    Note: VisibilityEnabler will not affect nodes added after scene initialization.

    Properties

    Enumerations

    • ENABLER_PAUSE_ANIMATIONS = 0 —- This enabler will pause AnimationPlayer nodes.
    • ENABLER_MAX = 2 —- Represents the size of the enum.

    If true, nodes will be paused.


    • bool pause_animations

    If true, nodes will be paused.

    Method Descriptions


    • void set_enabler ( Enabler enabler, enabled )

    Sets active state of the enabler identified by given Enabler constant.