Model:getNodeParent

Edit

Given a child node, this function returns the index of its parent.

parent = Model:getNodeParent(node)

Arguments

NameTypeDescription
nodestring | number The name or index of the child node.

Returns

NameTypeDescription
parentnumber The index of the parent node.

See also