void StopServiceMessageHandler(SerializableSubMessage message) { if (m_ARInterface != null) { StopService(); } }
void EnableVideoMessageHandler(SerializableSubMessage message) { var requestedVideoState = message.GetDataAs <SerializableEnableVideo>(); m_SendVideo = requestedVideoState.enableVideo; m_HaveSentCameraParams = false; }
void SendToPlayer(System.Guid msgId, object serializableObject) { var message = new SerializableSubMessage(msgId, serializableObject); var bytesToSend = message.SerializeToByteArray(); editorConnection.Send(ARMessageIds.fromEditor, bytesToSend); }
void StartServiceMessageHandler(SerializableSubMessage message) { var settings = message.GetDataAs <SerializableARSettings>(); if (settings == null) { return; } if (m_ServiceRunning) { Debug.LogWarning("Received message to start service while service is already running. Restarting."); m_ARInterface.StopService(); } StartService(settings); }
void BackgroundRenderingMessageHandler(SerializableSubMessage message) { var requestedBackgroundRenderingState = message.GetDataAs <SerializableBackgroundRendering>(); BackgroundRendering = requestedBackgroundRenderingState.backgroundRendering; }