HasReferencesManaged(Type, out bool, out bool, out bool, Dictionary<Type, EntityBlobRefResult>, int)
Checks if a type has any Entity, BlobAssetReferenceData or UnityObjectRef<T> references.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
HasReferencesManaged(Type, bool, bool, bool, Dictionary<Type, EntityBlobRefResult>, int)
public static void HasReferencesManaged(Type type, out bool hasEntityReferences, out bool hasBlobReferences, out bool hasUnityObjectReferences, Dictionary<Type, EntityRemapUtility.EntityBlobRefResult> cache = null, int maxDepth = 128)
Parameters
The type to inspect.
Specifies if the type has any BlobAssetReferenceData references.
Specifies if the type has any UnityObjectRef<T> references.
Map of type to EntityRemapUtility.EntityBlobRefResult used to accelerate the type recursion.
The maximum depth for the recursion.