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)
Parameter | Description |
---|---|
type | Type of scene change. |
node | Node that was affected. |
Constructs a SceneEvent.
Properties
type SceneEvent::Type
cpp
SceneEvent::Type type
Scene event type.
Functions
GetType() EventType virtual
cpp
EventType vglx::SceneEvent::GetType() const override
Returns event type.