Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


OnMessage(ControlContext, Pipe, Message)

Called immediately from ControlContext.SendMessage when a message was sent to this ProcessorInstance.
Read time 1 minuteLast updated 6 days ago

Definition

ProcessorInstance.Response OnMessage(ControlContext context, ProcessorInstance.Pipe pipe, ProcessorInstance.Message message)

Parameters

Context the processor is in.

pipe

Cross-thread communications pipe.

message

The message someone sent to you through ControlContext.SendMessage. The contents are sent by reference, so you can modify them and the sender will see the changes.

Returns

Type

Description

ResponseProcessorInstance.Response.Handled if this ProcessorInstance acknowledged and processed the message, ProcessorInstance.Response.Unhandled if not or ignored.