FindFirstChildByClass||doc136414

September 20, 2022

Format

Instance:FindFirstAncestorByClass(className, recursive)

Describe

Get child node instances by type. If there are child nodes of the same type, get the first one searched. You can choose to recursively search all descendant child nodes. By default, only direct child nodes are searched.

parameter

Variable name Type Describe
className string Type name
recursive bool Recursively find all descendant child nodes, which is false by default

Return value

Type Describe
Instance Child node instance