UnityLink`
UnityLink`
CreateUnityPrefab
CreateUnityPrefab["file directory", obj]
creates a Unity prefab from obj in the specified file directory.
Details
- CreateUnityPrefab returns a UnityPrefab if created, and $Failed if it cannot be created.
Examples
Basic Examples (2)Summary of the most common use cases
In[1]:=1

✖
https://wolfram.com/xid/0yi4qwgomkglqpngjmf4rd-buodkt
In[2]:=2

✖
https://wolfram.com/xid/0yi4qwgomkglqpngjmf4rd-c28u0u
In[1]:=1

✖
https://wolfram.com/xid/0yi4qwgomkglqpngjmf4rd-yevmm1
Out[1]=1

Create a Unity prefab in the project directory:
In[2]:=2

✖
https://wolfram.com/xid/0yi4qwgomkglqpngjmf4rd-zw7n1k
Out[2]=2

UnityPrefabQ checks if an expression is a UnityPrefab:
In[3]:=3

✖
https://wolfram.com/xid/0yi4qwgomkglqpngjmf4rd-zfycjn
Out[3]=3

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