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
- FindUnityGameObject[expr] returns the first UnityGameObject it found, Missing["Nonexistent"] if it was not found.
- FindUnityGameObject[expr,n] returns a list of at most n game objects.
- FindUnityGameObject[expr,All] finds all matching game objects in the open scenes.
- FindUnityGameObject[All, All] finds all game objects in the open scenes.
- FindUnityGameObject[] is the same as FindUnityGameObject[All, All].
- FindUnityGameObject is Listable.
Examples
open allclose allBasic Examples (3)
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 game objects using a RegularExpression:
Find all game objects in the current scene:
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.
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