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:
-
CreateIntermediateDirectories True whether intermediate directories should be created as needed. OverwriteTarget True whether to overwrite if target directory if it already exist. - CreateUnityAssetDirectory also accepts File objects.
- CreateUnityAssetDirectory is Listable.
范例
打开所有单元关闭所有单元基本范例 (4)
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.
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 年