W3cubDocs

/Godot 3.0

VisibilityEnabler

Inherits: VisibilityNotifier < Spatial < Node < Object

Category: Core

Brief Description

Enable certain nodes only when visible.

Member Variables

  • bool freeze_bodies
  • bool pause_animations

Enums

enum Enabler

  • ENABLER_PAUSE_ANIMATIONS = 0 — This enabler will pause AnimationPlayer nodes.
  • ENABLER_FREEZE_BODIES = 1 — This enabler will freeze RigidBody nodes.
  • ENABLER_MAX = 2

Description

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

© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.0/classes/class_visibilityenabler.html