UnityLink`
UnityLink`

OpenUnityScene

OpenUnityScene["path"]

open the Unity scene at the specified path.

更多信息

  • OpenUnityScene[expr] returns the UnityScene it opened, and $Failed if it cannot be created.
  • OpenUnityScene is Listable.
  • The following option can be given:
  • MethodAutomatichow to open the scene
  • Possible settings for Method include "Single" and "Additive", with the default being Automatic.

范例

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

基本范例  (2)

Load the UnityLink:

Open a Unity project:

Open a scene in the current Unity project:

Open a scene at a given path relative to the Assets directory:

Open a scene without closing any currently open scenes:

OpenUnityScene is Listable:

Options  (2)

Method  (2)

Use "Single" to close all open scenes before opening the specified scene:

The specified scene is made the active scene:

Use "Additive" to add the specified scene to the currently open scenes:

The active scene does not change:

Properties & Relations  (1)

Both FindUnityScene[All] and $OpenUnityScenes return all currently open scenes:

Possible Issues  (1)

Opening a currently open scene will reload the scene from its file and discard any unsaved changes:

Use SaveUnityScene to save any changes:

Neat Examples  (0)

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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