GameObjectSendMessage Method |
Invoke the 'OnReceiveMessage' callback of all the components of this entity.
Note: this is used mostly for communication between user scripts.
Namespace:
GeonBit.ECS
Assembly:
GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public bool SendMessage(
string type,
bool recursive
)
Parameters
- type
- Type: SystemString
Message type / identifier. - recursive
- Type: SystemBoolean
If true, will send message recursively to all children and their children.
Return Value
Type:
BooleanTrue if message should continue to next GameObjects, false otherwise.
See Also