Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Hashtable.Count

Description

Returns how many elements are in the hashtable.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Hashtable ht; void Example() { ht = new Hashtable(); Debug.Log("Hashtable has " + ht.Count + " elements."); } }