UnityLink`
UnityLink`
UnityPlay
switch the Unity editor to Play mode.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Copy to clipboard.
In[1]:=1

✖
https://wolfram.com/xid/0bhy6kxx3a3t1g61sq-buodkt
Direct link to example
Copy to clipboard.
In[2]:=2

✖
https://wolfram.com/xid/0bhy6kxx3a3t1g61sq-c28u0u
Direct link to example
Start Play mode in the Unity editor:
Copy to clipboard.
In[1]:=1

✖
https://wolfram.com/xid/0bhy6kxx3a3t1g61sq-4jvwc6
Direct link to example
Check that the editor is in Play mode:
Copy to clipboard.
In[2]:=2

✖
https://wolfram.com/xid/0bhy6kxx3a3t1g61sq-pukqxj
Direct link to example
Out[2]=2

Copy to clipboard.
In[3]:=3

✖
https://wolfram.com/xid/0bhy6kxx3a3t1g61sq-0inaj7
Direct link to example
Properties & Relations (2)Properties of the function, and connections to other functions
UnityCurrentValue can be used to start Play mode:
Copy to clipboard.
In[1]:=1

✖
https://wolfram.com/xid/0bhy6kxx3a3t1g61sq-skalys
Direct link to example
Out[1]=1

UnityCurrentValue can be used to stop Play mode:
Copy to clipboard.
In[2]:=2

✖
https://wolfram.com/xid/0bhy6kxx3a3t1g61sq-hv6kui
Direct link to example
Out[2]=2

Toggle play mode from the Unity menu:
Copy to clipboard.
In[1]:=1

✖
https://wolfram.com/xid/0bhy6kxx3a3t1g61sq-gqog5a
Direct link to example
Out[1]=1

Wolfram Research (2019), UnityPlay, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/UnityPlay.html.
Copy to clipboard.
✖
Wolfram Research (2019), UnityPlay, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/UnityPlay.html.
Text
Wolfram Research (2019), UnityPlay, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/UnityPlay.html.
Copy to clipboard.
✖
Wolfram Research (2019), UnityPlay, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/UnityPlay.html.
CMS
Wolfram Language. 2019. "UnityPlay." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/UnityPlay.html.
Copy to clipboard.
✖
Wolfram Language. 2019. "UnityPlay." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/UnityPlay.html.
APA
Wolfram Language. (2019). UnityPlay. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/UnityPlay.html
Copy to clipboard.
✖
Wolfram Language. (2019). UnityPlay. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/UnityPlay.html
BibTeX
Copy to clipboard.
✖
@misc{reference.wolfram_2022_unityplay, author="Wolfram Research", title="{UnityPlay}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/UnityPlay.html}", note=[Accessed: 26-March-2025
]}
BibLaTeX
Copy to clipboard.
✖
@online{reference.wolfram_2022_unityplay, organization={Wolfram Research}, title={UnityPlay}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/UnityPlay.html}, note=[Accessed: 26-March-2025
]}