Method HasReferencesManaged
HasReferencesManaged(Type, out bool, out bool, out bool, Dictionary<Type, EntityBlobRefResult>, int)
Checks if a type has any Entity, BlobAssetReferenceData or UnityObjectRef<T> references.
Declaration
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 | Name | Description |
|---|---|---|
| Type | type | The type to inspect. |
| bool | hasEntityReferences | Specifies if the type has any Entity references. |
| bool | hasBlobReferences | Specifies if the type has any BlobAssetReferenceData references. |
| bool | hasUnityObjectReferences | Specifies if the type has any UnityObjectRef<T> references. |
| Dictionary<Type, EntityRemapUtility.EntityBlobRefResult> | cache | Map of type to EntityRemapUtility.EntityBlobRefResult used to accelerate the type recursion. |
| int | maxDepth | The maximum depth for the recursion. |