Respond to an event being propagated through the scene graph. Returns if the event is consumed, in which case the event will not be passed to the next entity, depending on how the event is being sent through the hierarchy.
Verse using statement |
using { /Verse.org/SceneGraph } |
OnReceive<native><native_callable><public><experimental>(SceneEvent:scene_event):logic
Parameters
OnReceive
takes the following parameters:
Name | Type | Description |
---|---|---|
SceneEvent |
scene_event |
Attributes and Effects
The following attributes determine how OnReceive
behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute | Meaning |
---|---|
native |
Indicates that the definition details of the element are implemented in C++. Verse definitions with the native specifier auto-generate C++ definitions that a developer can then fill out its implementation. You can use this specifier on classes, interfaces, enums, methods, and data. |
native_callable |
Indicates that an instance method is both native (implemented in C++) and may be called by other C++ code. You can see this specifier used on an instance method. This specifier doesn’t propagate to subclasses and so you don’t need to add it to a definition when overriding a method that has this specifier. |
public |
The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data. |