Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SendMessage<T>(ProcessorInstance, ref T)

Send a message with a piece of data to be immediately evaluated by the ProcessorInstance.IRealtime.OnMessage on the real-time side.
Read time 1 minuteLast updated 6 days ago

Definition

SendMessage<T>(ProcessorInstance, T)

public readonly ProcessorInstance.Response SendMessage<T>(ProcessorInstance processorInstance, ref T message) where T : unmanaged

Parameters

processorInstance


message

T

Returns

Type

Description

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

Remarks

This is the real-time counterpart of ControlContext.SendMessage: it dispatches synchronously to the
processorInstance
's ProcessorInstance.IRealtime implementation from within this RealtimeContext. The
message
is passed by reference, so the
processorInstance
can modify it.