FindFirstAncestorByClass||doc136412

September 20, 2022

Format

Instance:FindFirstAncestorByClass(className)

Describe

Get the ancestor node instance according to the type. If there are ancestors of the same type, get the first one searched.

parameter

Variable name Type Describe
className string Type name

Return value

Type Describe
Instance Ancestor node instance