Class InteractableTypeFinder
A helper that uses reflection to find objects that implement base types of the Interactable types that populate the various state, theme, and event inspectors.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public class InteractableTypeFinder
Methods
Find(List<Type>, TypeRestriction)
A convenience wrapper provided for editor code to turn a list of types into a form that matches their existing structure.
Declaration
public static InteractableTypesContainer Find(List<Type> types, TypeRestriction typeRestriction)
Parameters
Type | Name | Description |
---|---|---|
List<Type> | types | |
TypeRestriction | typeRestriction |
Returns
Type | Description |
---|---|
InteractableTypesContainer |
Remarks
This is primarily a crutch because of how the inspector code stores parallel arrays of objects, rather than just storing an array of objects (i.e. it stores three arrays of objects which happen to have matching indices, rather than storing a single array of objects which have state relevant within the object).