Click or drag to resize

CustomMessageManager Class

Manager class to help with object state synchronisation and custom message setup. Object state synchronisation is intended to be a simpler way to use custom messages with less setup. You can still use custom messages by setting them up manually in the Editor.
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDKSingletonBehaviour
              ImmerseSDK.Multiplayer.MessagingCustomMessageManager

Namespace:  ImmerseSDK.Multiplayer.Messaging
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public class CustomMessageManager : SingletonBehaviour

The CustomMessageManager type exposes the following members.

Constructors
  NameDescription
Public methodCustomMessageManager
Initializes a new instance of the CustomMessageManager class
Top
Properties
  NameDescription
Public propertyIsPaused
Returns true is messages will be kept and not processed (paused state), or false if messages are being processed (unpaused state)
Top
Methods
  NameDescription
Public methodClearCustomMessageCallback
Clear a message callback for a custom message that was set up
Public methodCoroutineInitialise
Override this to perform initialisation tasks This coroutine is started in Awake(). To execute code in Awake(), override OnAwake()
(Overrides SingletonBehaviourCoroutineInitialise.)
Public methodDeleteAllMessages
Delete all custom and state synchroniser persisted messages
Public methodDeleteMessage
Delete a specific persisted message
Public methodStatic memberIsMessageTypeValid
Returns true if message ID is within the valid range
Protected methodOnAwake
Unity component method
(Overrides SingletonBehaviourOnAwake.)
Public methodProcessSavedMessages
Process messages that arrived before the receiver was ready
Public methodRegisterCustomMessageCallback
Register a message callback for a custom message that was set up
Public methodSendCustomMessage(UInt16, Byte)
Sends a custom message
Public methodSendCustomMessage(UInt16, Object)
Sends a custom message
Public methodSendCustomMessage(UInt16, String)
Sends a custom message
Public methodSendCustomMessage(UInt16, Byte, MessageID)
Sends a custom message
Public methodSendCustomMessage(UInt16, Object, MessageID)
Sends a custom message with a message id. This is required for persisting messages
Public methodSendCustomMessage(UInt16, String, MessageID)
Sends a custom message with a message id. This is required for persisting messages
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also