Click or drag to resize

Utility.FindObjects<T> Method

Finds the objects in children of parent object by name of child

Namespace:  IBM.Watson.DeveloperCloud.Utilities
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static T[] FindObjects<T>(
	GameObject parent,
	string nameChild,
	bool isContains = false,
	bool sortByName = false,
	bool includeInactive = true
)
where T : Component

Parameters

parent
Type: GameObject
Parent.
nameChild
Type: System.String
Name child.
isContains (Optional)
Type: System.Boolean
Check string contains the name instead of equality.
sortByName (Optional)
Type: System.Boolean
If true, children will be returned sorted by their name.
includeInactive (Optional)
Type: System.Boolean

[Missing <param name="includeInactive"/> documentation for "M:IBM.Watson.DeveloperCloud.Utilities.Utility.FindObjects``1(UnityEngine.GameObject,System.String,System.Boolean,System.Boolean,System.Boolean)"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:IBM.Watson.DeveloperCloud.Utilities.Utility.FindObjects``1(UnityEngine.GameObject,System.String,System.Boolean,System.Boolean,System.Boolean)"]

Return Value

Type:T[]
The objects.
See Also