Skip to content

SceneEvent

[Event](/reference/events/event) representing a change in the scene graph hierarchy.

[SceneEvent](/reference/events/scene_event) is dispatched when a node is added to or removed from the active scene. It contains a reference to the affected node and the type of change.

INFO

Derives from Event and inherits all public properties and methods.

Construction

Constructors


SceneEvent()

cpp
vglx::SceneEvent::SceneEvent(Type type, std::shared_ptr< Node > node)
ParameterDescription
typeType of scene change.
nodeNode that was affected.

Constructs a SceneEvent.

Properties

node std::shared_ptr<Node>

cpp
std::shared_ptr<Node> node

Node that was added or removed.

type SceneEvent::Type

cpp
SceneEvent::Type type

Scene event type.

Functions

GetType() EventType virtual

cpp
EventType vglx::SceneEvent::GetType() const override

Returns event type.

Released under the MIT License.