Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetElement

Gets an element from the list.
Read time 1 minuteLast updated 12 days ago

Definition

GetElement(uint)

Gets an element from the list.
public T GetElement(uint elementID)

Parameters

elementID

Element ID.

Returns

Type

Description

TThe element from the list that matches the parameter. If there isn't a match, returns null.

GetElement(Dictionary<string, string>)

Gets an element from the list.
public T GetElement(Dictionary<string, string> attributes)

Parameters

Dictionary of attributes that the element must include.

Returns

Type

Description

TThe element from the list that matches the parameter. If there isn't a match, returns null.

GetElement(string, Dictionary<string, string>)

Gets an element from the list.
public T GetElement(string name, Dictionary<string, string> attributes)

Parameters

name

Element name.

Dictionary of attributes that the element must include.

Returns

Type

Description

TThe element from the list that matches the parameter. If there isn't a match, returns null.