UnityLink`
UnityLink`

CreateUnityAssetDirectory

CreateUnityAssetDirectory["path"]

create an asset at the specified path from the given UnityObject obj.

更多信息

  • CreateUnityAssetDirectory returns relative path of the directory it created, and $Failed if it cannot be created. The returned path is relative to the Assets directory.
  • CreateUnityAssetDirectory accepts the following options:
  • CreateIntermediateDirectoriesTruewhether intermediate directories should be created as needed.
    OverwriteTargetTruewhether to overwrite if target directory if it already exist.
  • CreateUnityAssetDirectory also accepts File objects.
  • CreateUnityAssetDirectory is Listable.

范例

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

基本范例  (4)

Load the UnityLink:

Open a Unity project:

Create an asset directory with a specific name:

Create an asset directory at a specific path:

Create multiple directories:

Options  (2)

CreateIntermediateDirectories  (1)

By default, any intermediate directories are created if they do not already exist:

Use the CreateIntermediateDirectories option to only create the given directory if all intermediate directories exist:

OverwriteTarget  (1)

By default, if the target directory already exists, its contents will be overwritten to an empty directory:

Use the OverwriteTarget option to prevent the target directory from being overwritten:

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

文本

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2022_createunityassetdirectory, author="Wolfram Research", title="{CreateUnityAssetDirectory}", year="2017", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/FindUnityScene.html}", note=[Accessed: 26-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2022_createunityassetdirectory, organization={Wolfram Research}, title={CreateUnityAssetDirectory}, year={2017}, url={https://reference.wolfram.com/language/UnityLink/ref/FindUnityScene.html}, note=[Accessed: 26-November-2024 ]}