UxrAvatarComponent<T>.GetComponents<TC> Method (UxrAvatar, Boolean)

Gets the components of a specific avatar.

Namespace: UltimateXR.Core.Components.Composite
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static IEnumerable<TC> GetComponents<TC>(
	UxrAvatar avatar,
	bool includeDisabled = false
)
where TC : 

Parameters

 

avatar
Type: UltimateXR.Avatar.UxrAvatar
Avatar to get the components from
includeDisabled (Optional)
Type: System.Boolean
Whether to include disabled components or not

Type Parameters

 

TC
[Missing documentation for “M:UltimateXR.Core.Components.Composite.UxrAvatarComponent`1.GetComponents``1(UltimateXR.Avatar.UxrAvatar,System.Boolean)”]

Return Value

Type: IEnumerable<TC>
Components meeting the criteria

Remarks

When using the includeDisabled parameter, components that have never been enabled are not returned. Components are automatically registered through their Awake() call, which is never called if the object has never been enabled. In this case it is recommended to resort to GetComponentsInChildren``1(Boolean).

See Also

Reference

UxrAvatarComponent<T> Class
GetComponents Overload
UltimateXR.Core.Components.Composite Namespace