Documentation

Unity Engine


Unity Engine


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

type

The type to inspect.

hasEntityReferences

Specifies if the type has any Entity references.

hasBlobReferences

Specifies if the type has any BlobAssetReferenceData references.

hasUnityObjectReferences

Specifies if the type has any UnityObjectRef<T> references.

Map of type to EntityRemapUtility.EntityBlobRefResult used to accelerate the type recursion.

maxDepth

The maximum depth for the recursion.