VisibleOnScreenNotifier3D
A box-shaped region of 3D space that detects whether it is visible on screen.
VisibleOnScreenNotifier3D.swift:28class VisibleOnScreenNotifier3D
VisibleOnScreenEnabler3D
represents a box-shaped region of 3D space. When any part of this region becomes visible on screen or in a Camera3D
’s view, it will emit a [signal screen_entered] signal, and likewise it will emit a [signal screen_exited] signal when no part of it remains visible.
If you want a node to be enabled automatically when this region is visible on screen, use VisibleOnScreenEnabler3D
.
This object emits the following signals:
Superclasses
class VisualInstance3D
Parent of all visual 3D nodes.
Citizens in SwiftGodot
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Identifiable<ID>
A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable
Types that conform to VariantRepresentable can be stored directly in
Variant
with no conversion. These include all of the Variant types from Godot (for exampleGString
,Rect
,Plane
), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Type members
Instance members
var aabb: AABB
The
VisibleOnScreenNotifier3D
’s bounding box.var screenEntered: SimpleSignal
Emitted when the
VisibleOnScreenNotifier3D
enters the screen.var screenExited: SimpleSignal
Emitted when the
VisibleOnScreenNotifier3D
exits the screen.func isOnScreen(
) -> Bool Returns
true
if the bounding box is on the screen.
Subclasses
class VisibleOnScreenEnabler3D
A box-shaped region of 3D space that, when visible on screen, enables a target node.