Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BaseBlock

Abstract base class for all existing block elements.
Read time 1 minuteLast updated 5 days ago

Definition

public abstract class BaseBlock : BaseElement, ICloneable

Remarks

Empty blocks don't appear in the resulting file. A block is empty if it has no children and has no raw value set.

Constructors

Constructor

Description

BaseBlock(Unity.Android.Gradle.BaseBlock)Element constructor.

Methods

Method

Description

AddElementAdds a new element as a child.
ClearClears the content of this element.
GetElementGets an element by ID.
GetElementsGets all custom child elements.
GetNameGets the name of the block. In some cases, the name is the signature of the function.
GetRawGets the raw value of this block.
GetUniqueNameGets the unique name of the element.
RemoveElementRemoves a child element by id.
SetRawSets a raw string value to this block.
ToStringGets a serialized value from this block.

Inheritance