UnityLink`
UnityLink`

UnityHierarchyGraph

UnityHierarchyGraph[obj]

gives the hierarchy graph containing the Unity game object obj and its descendants.

UnityHierarchyGraph[comp]

gives the hierarchy graph containing the Unity game object with component comp and its descendants.

UnityHierarchyGraph[scene]

gives the hierarchy graph for all Unity game objects in the specified Unity scene scene.

更多信息

  • UnityHierarchyGraph returns a Graph object representing the transform hierarchy of Unity game objects.
  • UnityHierarchyGraph[All] gives a graph of all Unity game objects in the active Unity scene.
  • UnityHierarchyGraph takes the same options as Graph.

范例

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

基本范例  (2)

Load the Unity Link:

Open a Unity project:

Get the hierarchy graph for all objects in the current scene:

Scope  (3)

Get the hierarchy graph for a specific game object:

Get the hierarchy graph for a specific game object component:

Get the hierarchy graph for a scene:

Properties & Relations  (1)

VertexList will return a list of the UnityGameObject objects and UnityScene objects used in the hierarchy graph:

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

文本

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2022_unityhierarchygraph, author="Wolfram Research", title="{UnityHierarchyGraph}", year="2017", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/UnityHierarchyGraph.html}", note=[Accessed: 30-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2022_unityhierarchygraph, organization={Wolfram Research}, title={UnityHierarchyGraph}, year={2017}, url={https://reference.wolfram.com/language/UnityLink/ref/UnityHierarchyGraph.html}, note=[Accessed: 30-December-2024 ]}