ClockStone Audio Toolkit for Unity - Documentation
RegisteredComponentController Class |
This controller provides fast access to all currently existing RegisteredComponent instances.
Inheritance Hierarchy
Namespace: (Default Namespace)
Assembly: AudioToolkit (in AudioToolkit.dll) Version: 8.2.0.0 (8.2.0.0)
Syntax
C#
public static class RegisteredComponentController
The RegisteredComponentController type exposes the following members.
Methods
Name | Description | |
---|---|---|
GetAllOfType(Type) |
Retrieves an array of all currently existing instances of the class with type type,
(type must be a RegisteredComponent )
| |
GetAllOfTypeT |
Retrieves an array of all currently existing instances of the class T,
where T must be a RegisteredComponent | |
InstanceCountOfTypeT |
Return the number of all currently existing instances of the class T,
where T must be a RegisteredComponent |
Remarks
The function GetAllOfTypeT is understood as a replacement for Unity's
slow GameObject.FindObjectsOfType() function.
See Also