API reference
API reference
Select your platform
No SDKs available
No versions available

InstanceCache Class

Manages the instance cache, clear up cache when needed.

Overview

Events

Action< Type >
Func< InstanceHandle, IInspector >
Action< InstanceHandle >

Public Member Functions

List< InstanceHandle >
GetCacheDataForClass
( Type classType )
This function will return active instances for a class (UnityEngine components), return cached result first.
void
RegisterClassType
( Type classType )
Register class type for caching purpose, also attempt to fetch instance.
void
RegisterClassTypes
( IEnumerable< Type > types )
Register list of class types for caching purpose, also attempt to fetch instance.

Details

Events

Action<Type> Meta.XR.ImmersiveDebugger.Utils.InstanceCache.OnCacheChangedForTypeEvent ( )
No description available.
Func<InstanceHandle, IInspector> Meta.XR.ImmersiveDebugger.Utils.InstanceCache.OnInstanceAdded ( )
No description available.
Action<InstanceHandle> Meta.XR.ImmersiveDebugger.Utils.InstanceCache.OnInstanceRemoved ( )
No description available.

Member Functions

List< InstanceHandle > Meta.XR.ImmersiveDebugger.Utils.InstanceCache.GetCacheDataForClass
( Type classType )
This function will return active instances for a class (UnityEngine components), return cached result first.
Parameters
classType
specify which classType to query
Returns
fetched instance result, could be empty list if no instances
void Meta.XR.ImmersiveDebugger.Utils.InstanceCache.RegisterClassType
( Type classType )
Register class type for caching purpose, also attempt to fetch instance.
void Meta.XR.ImmersiveDebugger.Utils.InstanceCache.RegisterClassTypes
( IEnumerable< Type > types )
Register list of class types for caching purpose, also attempt to fetch instance.