Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CountValuesForKey(TKey)

Returns the number of values associated with a given key.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

CountValuesForKey(T)

public int CountValuesForKey(TKey key)

Parameters

key

T
The key to look up.

Returns

Type

Description

intThe number of values associated with the key. Returns 0 if the key was not present.