VisibilityEnabler

Inherits: VisibilityNotifier < Spatial < Node < Object

类别: 核心

简要说明

仅在可见时启用某些节点。

方法

bool

is_enabler_enabled ( Enabler enabler ) const

无效

set_enabler ( Enabler enabler, bool enabled )

枚举

枚举 启用程序

  • ENABLER_PAUSE_ANIMATIONS = 0 ---此启用程序将暂停 AnimationPlayer 节点。

  • ENABLER_FREEZE_BODIES = 1 ---此启用程序将冻结 RigidBody 节点。

  • ENABLER_MAX = 2 ---表示 Enabler 枚举。

描述

VisibilityEnabler将禁用 RigidBodyAnimationPlayer 当节点不可见时。它将只影响与VisibilityEnabler本身位于同一场景中的其他节点。

属性描述

  • bool freeze_bodies

违约

设定器

设置启用码(值)

吸气剂

_启用码_启用())

如果 trueRigidBody 节点将暂停。

  • bool pause_animations

违约

设定器

设置启用码(值)

吸气剂

_启用码_启用())

如果 trueAnimationPlayer 节点将暂停。

方法说明