Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetChild(int, out ElementNode)

Tries to get a child VisualElementAssetReferenceTable.ElementNode by its authoring ID.
Read time 1 minuteLast updated 7 days ago

Definition

TryGetChild(int, ElementNode)

public bool TryGetChild(int id, out VisualElementAssetReferenceTable.ElementNode elementNode)

Parameters

id

The authoring-id to find in the document.

elementNode

The found element node matching
id
.

Returns

Type

Description

bool
true
if an element with a matching authroing-id could be found; otherwise
false
.