BaseElement.AddElementDependencies

Declaration

public void AddElementDependencies(IEnumerable<uint> elements);

Parameters

elements Collection of elements this element will depend on.

Description

Adds a list of dependencies by ID to this element.

This element depends on the given elements and therefore will be printed below the specified elements in the generated file.

Unity throws an exception if:

  • Any of the provided elements do not share the same parent.
  • Any of the provided elements are empty.
  • This element is empty.


Did you find this page useful? Please give it a rating: