UnityLink`
UnityLink`

FindUnityGameObject

FindUnityGameObject["name"]

finds the Unity game object with the specified name.

FindUnityGameObject[patt]

finds the Unity game object with the name that matches the string pattern patt.

FindUnityGameObject[RegularExpression["regex"]]

finds the Unity game object with the name that matches the specified regular expression.

FindUnityGameObject[,n]

finds at most n Unity game objects.

Details

Examples

open allclose all

Basic Examples  (3)

Load the Unity Link:

Open a Unity project:

Find a game object by name:

Get the position of the game object:

Find all game objects in the open scene:

Scope  (9)

Find a single game object by name:

Find a game object using a string pattern:

Find all game objects with names matching a string pattern:

Find game objects using abbreviated string patterns:

Find at most 3 game objects:

Find game objects using a RegularExpression:

Find all game objects in the current scene:

Find at most 3 game objects in the current scene:

FindUnityGameObject is Listable:

Applications  (2)

Find the number of game objects in the current scene:

Find the position of every game object in the current scene:

Plot the positions with Graphics3D.

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2022_findunitygameobject, organization={Wolfram Research}, title={FindUnityGameObject}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/FindUnityGameObject.html}, note=[Accessed: 21-December-2024 ]}