UnityLink`
UnityLink`

CreateUnityGameObject

CreateUnityGameObject["name"]

creates an empty game object with the specified name.

CreateUnityGameObject["name",expr]

creates a Unity game object from expr with the specified name.

更多信息

  • CreateUnityGameObject returns a UnityGameObject it created, and $Failed if it cannot be created.
  • The following expressions can be used:
  • Graphics[]graphics (2D)
    Graphics3D[]graphics (3D)
    Region[]region
    MeshRegion[]mesh region
    BoundaryMeshRegion[]boundary mesh region
    UnityMesh[]unity mesh

范例

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

基本范例  (2)

Load the Unity Link:

Open a new Unity project:

Create an empty Unity game object:

Create a Unity game object from a geometric region:

Create a Unity game object from graphics:

Scope  (6)

Create an empty Unity game object:

Create a Unity game object from a 2D region:

Create a Unity game object from a 3D region:

Create a Unity game object from Graphics3D:

Create a Unity game object from a BoundaryMeshRegion:

Create a Unity game object from a MeshRegion:

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

文本

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2022_createunitygameobject, author="Wolfram Research", title="{CreateUnityGameObject}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/CreateUnityGameObject.html}", note=[Accessed: 31-January-2025 ]}

BibLaTeX

@online{reference.wolfram_2022_createunitygameobject, organization={Wolfram Research}, title={CreateUnityGameObject}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/CreateUnityGameObject.html}, note=[Accessed: 31-January-2025 ]}