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.

Details

Examples

open allclose all

Basic Examples  (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 (2019), UnityHierarchyGraph, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/UnityHierarchyGraph.html.

Text

Wolfram Research (2019), UnityHierarchyGraph, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/UnityHierarchyGraph.html.

BibTeX

@misc{reference.wolfram_2021_unityhierarchygraph, author="Wolfram Research", title="{UnityHierarchyGraph}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/UnityHierarchyGraph.html}", note=[Accessed: 23-October-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_unityhierarchygraph, organization={Wolfram Research}, title={UnityHierarchyGraph}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/UnityHierarchyGraph.html}, note=[Accessed: 23-October-2021 ]}

CMS

Wolfram Language. 2019. "UnityHierarchyGraph." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/UnityHierarchyGraph.html.

APA

Wolfram Language. (2019). UnityHierarchyGraph. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/UnityHierarchyGraph.html