Node.findParent

Finds the first parent of the current node whose name matches mask as in String.match (i.e. case-sensitive, but "*" matches zero or more characters and "?" matches any single character except "."). Note: It does not match against the full path, just against individual node names. Note: As this method walks upwards in the scene tree, it can be slow in large, deeply nested scene trees. Whenever possible, consider using getNode instead. To avoid using findParent too often, consider caching the node reference into a variable.

struct Node
@nogc nothrow const
findParent
(
in String mask
)

Meta