VisibilityEnabler2D

Enable certain nodes only when visible.

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

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
Enabler
enum Enabler

Functions

_nodeRemoved
void _nodeRemoved(GodotObject arg0)
isEnablerEnabled
bool isEnablerEnabled(long enabler)
opAssign
VisibilityEnabler2D opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(VisibilityEnabler2D other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
setEnabler
void setEnabler(long enabler, bool enabled)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

freezeBodies
bool freezeBodies [@property getter]
bool freezeBodies [@property setter]

If true RigidBody2D nodes will be paused.

pauseAnimatedSprites
bool pauseAnimatedSprites [@property getter]
bool pauseAnimatedSprites [@property setter]

If true AnimatedSprite nodes will be paused.

pauseAnimations
bool pauseAnimations [@property getter]
bool pauseAnimations [@property setter]

If true AnimationPlayer nodes will be paused.

pauseParticles
bool pauseParticles [@property getter]
bool pauseParticles [@property setter]

If true Particles2D nodes will be paused.

physicsProcessParent
bool physicsProcessParent [@property setter]

If true the parent's Node._physicsProcess will be stopped.

physicsProcessParent
bool physicsProcessParent [@property getter]

If true the parent's Node._physicsProcess will be stopped.

processParent
bool processParent [@property getter]
bool processParent [@property setter]

If true the parent's Node._process will be stopped.

Static functions

_new
VisibilityEnabler2D _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta