Iterate over all the components and call 'methodName()', if such method exists.
Namespace:
GeonBit.ECS
Assembly:
GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public void Trigger(
string methodName,
string componentNameFilter = null,
Object[] parameters = null,
bool recursive = false
)
Parameters
- methodName
- Type: SystemString
Method name to invoke. - componentNameFilter (Optional)
- Type: SystemString
If provided, will only invoke callback in components sharing this name. - parameters (Optional)
- Type: SystemObject
Optional parameters to pass to called function. - recursive (Optional)
- Type: SystemBoolean
If true, will also trigger child game objects recursively.
See Also