getReferenceCount

inline fun <T> getReferenceCount(path: String): Int

Returns the amount of references to the asset under the given path of T type.

References consist of manual registration of the asset with add, scheduling the asset for loading with load, loadAsync or loadSync, and the amount of times the asset was referenced as a dependency of other assets.


Returns the amount of references to the asset described by descriptor.

References consist of manual registration of the asset with add, scheduling the asset for loading with load, loadAsync or loadSync, and the amount of times the asset was referenced as a dependency of other assets.


fun getReferenceCount(identifier: Identifier<*>): Int

Returns the amount of references to the asset identified by identifier.

References consist of manual registration of the asset with add, scheduling the asset for loading with load, loadAsync or loadSync, and the amount of times the asset was referenced as a dependency of other assets.