文档

Unity Engine

Unity Engine

AddElement(BaseElement)

Adds a new element as a child.
阅读时间1 分钟最后更新于 1 个月前

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.