From f229be9738292fa96b37d073e26aa92f107401d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=90=A6?= Date: Mon, 25 Dec 2023 15:46:48 +0800 Subject: [PATCH] update doc --- doc/drivers/unity3d.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/drivers/unity3d.rst b/doc/drivers/unity3d.rst index b7a92c5..34160e9 100644 --- a/doc/drivers/unity3d.rst +++ b/doc/drivers/unity3d.rst @@ -150,6 +150,16 @@ Using the ``sendMessage()`` Function The ``UnityPoco.sendMessage()`` function allows you to send simple messages with a single string argument from Poco to Unity. +Unity-side +~~~~~~~~~~ + +Implement OnPocoMessageReceived and add it to PocoManager.MessageReceived. This function will be called when a message is received from Poco. + +.. code-block:: csharp + + PocoManager.MessageReceived += OnPocoMessageReceived; + + Poco-side ~~~~~~~~~