UnityLink`
UnityLink`

UnityTokenExecute

UnityTokenExecute[{"name1","name2",}]

invokes the Unity menu item at the path made by joining the namei.

更多信息

  • UnityTokenExecute returns Null if it successfully invoked the specified menu item, $Failed if it did not.

范例

打开所有单元关闭所有单元

基本范例  (2)

Load the UnityLink:

Open a Unity project:

Open the Unity preferences window from the Unity menu:

Specify the full menu item path to invoke:

Specify the individual path names in a list:

Specify the individual path names in sequence:

Applications  (4)

Create game objects with all the default components:

Default materials are also added to some game objects:

Create assets in the current asset directory:

Open editor windows:

Control the game from the Unity menu:

Possible Issues  (1)

The menu item has to exist at the specified path in order to invoke it:

Wolfram Research (2019),UnityTokenExecute,Wolfram 语言函数,https://reference.wolfram.com/language/UnityLink/ref/UnityTokenExecute.html.

文本

Wolfram Research (2019),UnityTokenExecute,Wolfram 语言函数,https://reference.wolfram.com/language/UnityLink/ref/UnityTokenExecute.html.

CMS

Wolfram 语言. 2019. "UnityTokenExecute." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/UnityTokenExecute.html.

APA

Wolfram 语言. (2019). UnityTokenExecute. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/UnityLink/ref/UnityTokenExecute.html 年

BibTeX

@misc{reference.wolfram_2022_unitytokenexecute, author="Wolfram Research", title="{UnityTokenExecute}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/UnityTokenExecute.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2022_unitytokenexecute, organization={Wolfram Research}, title={UnityTokenExecute}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/UnityTokenExecute.html}, note=[Accessed: 22-November-2024 ]}