Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddElement(BaseElement)

Adds a new element as a child.
Read time 1 minuteLast updated 12 days ago

Definition

public void AddElement(BaseElement element)

Parameters

Element to add as a child.

Remarks

Unity throws an exception if:
  • The provided element already has a parent.
  • A parent of this element has a raw value set.
  • This element has a raw value set.