<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Question: Change Message box list values from unity.]]></title><description><![CDATA[<p>I'm trying to change the values of the list in the message box from Unity. Based on the documentation we can do that using the SendMesage() method.</p>
<pre><code>public void SendMessage(string destination, string symbol, params object[] args)
</code></pre>
<p>where the destination is the receiver box, and args is supposed to be the array of values. I don't know what will be used as a &quot;symbol&quot; in the message box.</p>
<p>The method is triggering the message box but can't change values.</p>
<p>Can anyone please tell me how to change values in the message box from unity, or what will be used as a &quot;symbol&quot; in SendMessage() method?</p>
<p>In the documentation, the symbol is defined as &quot;The message keyword&quot;.</p>
<p>I've attached a PD patch below for reference.</p>
<p><img src="/uploads/files/1654082461575-pd.png" alt="pd.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13957/question-change-message-box-list-values-from-unity</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 23:05:23 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13957.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Jun 2022 11:29:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Question: Change Message box list values from unity. on Wed, 01 Jun 2022 11:29:13 GMT]]></title><description><![CDATA[<p>I'm trying to change the values of the list in the message box from Unity. Based on the documentation we can do that using the SendMesage() method.</p>
<pre><code>public void SendMessage(string destination, string symbol, params object[] args)
</code></pre>
<p>where the destination is the receiver box, and args is supposed to be the array of values. I don't know what will be used as a &quot;symbol&quot; in the message box.</p>
<p>The method is triggering the message box but can't change values.</p>
<p>Can anyone please tell me how to change values in the message box from unity, or what will be used as a &quot;symbol&quot; in SendMessage() method?</p>
<p>In the documentation, the symbol is defined as &quot;The message keyword&quot;.</p>
<p>I've attached a PD patch below for reference.</p>
<p><img src="/uploads/files/1654082461575-pd.png" alt="pd.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13957/question-change-message-box-list-values-from-unity</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13957/question-change-message-box-list-values-from-unity</guid><dc:creator><![CDATA[Kiara]]></dc:creator><pubDate>Wed, 01 Jun 2022 11:29:13 GMT</pubDate></item><item><title><![CDATA[Reply to Question: Change Message box list values from unity. on Wed, 01 Jun 2022 18:19:56 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/kiara">@Kiara</a> What is your actual code in Unity...... have you replaced &quot;destination&quot; with &quot;unity_message&quot;...?<br />
&quot;symbol&quot; might just be a header...... try something like &quot;myarray&quot;.<br />
Its purpose could be to differentiate from other messages sent such as &quot;myfader1&quot;<br />
You say that you do receive something in Pd...... something arrives at the outlet of [r unity_message]...?</p>
<p>Attach a [print] to [r unity_message] and screenshot the print in the Pd console and upload it.<br />
A more useful [print] is [rawprint] which is in the zexy library.... that gives more information.</p>
<p>David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13957/question-change-message-box-list-values-from-unity/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13957/question-change-message-box-list-values-from-unity/2</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 01 Jun 2022 18:19:56 GMT</pubDate></item><item><title><![CDATA[Reply to Question: Change Message box list values from unity. on Thu, 02 Jun 2022 03:29:16 GMT]]></title><description><![CDATA[<p>I can't see the PD patch while the game's running.</p>
<p>Here's is the code I'm using:</p>
<pre><code>public LibPdInstance pdPatch;
public float[] list = {880, 440, 440 };

void OnTriggerEnter(Collider other)
{
    if (other.CompareTag(&quot;Player&quot;))
    {

        pdPatch.SendMessage(&quot;loadbang&quot;, &quot;list&quot;, list);
        pdPatch.SendBang(&quot;unity_bang&quot;);                        

    }
}
</code></pre>
<p>I'm using loadbang as a destination, and testing using values {220, 220, 440} , {880, 440, 440} and {220, 440, 880}</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13957/question-change-message-box-list-values-from-unity/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13957/question-change-message-box-list-values-from-unity/3</guid><dc:creator><![CDATA[Kiara]]></dc:creator><pubDate>Thu, 02 Jun 2022 03:29:16 GMT</pubDate></item><item><title><![CDATA[Reply to Question: Change Message box list values from unity. on Thu, 02 Jun 2022 05:23:44 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/kiara">@Kiara</a> Your list from Unity will not pass from [r loadbang] as you have a fixed message [220 220 440( in the Pd patch.  But it should trigger that fixed message if the list actually arrives at [r loadbang].<br />
So it seems likely that nothing arrives.</p>
<p>I suggest you try (as you cannot see the patch or the Pd console) debugging using the libPd &quot;Pipe Print to Console&quot; feature......... <a href="https://github.com/LibPdIntegration/LibPdIntegration" rel="nofollow">https://github.com/LibPdIntegration/LibPdIntegration</a>.<br />
With [print] objects in your Pd patch, connected to the [receive] objects, you can then see in the Unity console any messages arriving in the patch.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13957/question-change-message-box-list-values-from-unity/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13957/question-change-message-box-list-values-from-unity/4</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Thu, 02 Jun 2022 05:23:44 GMT</pubDate></item><item><title><![CDATA[Reply to Question: Change Message box list values from unity. on Mon, 06 Jun 2022 08:46:18 GMT]]></title><description><![CDATA[<p>I added print to received objects but nothing prints out. I tried sending values to an empty message box, but nothing happened. I can only trigger the message box but can't send any data to it. I'm guessing the symbol parameter has something to do with it.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13957/question-change-message-box-list-values-from-unity/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13957/question-change-message-box-list-values-from-unity/5</guid><dc:creator><![CDATA[Kiara]]></dc:creator><pubDate>Mon, 06 Jun 2022 08:46:18 GMT</pubDate></item></channel></rss>