b3dFindChild

Searches parent's direct children for name match (returns first match, 0 if not found). Takes entity (parent entity handle), childName (name string to search for). Returns child handle as Int (first matching child handle, 0 if not found or invalid parent).

3D Graphics

Parameters & Returns

Parameters

entity Int
childName String

Returns

Int

Quick Summary

Searches parent's direct children for name match (returns first match, 0 if not found). Takes entity (parent entity handle), childName (name string to search for). Returns child handle as Int (first matching child handle, 0 if not found or invalid parent).

Technical Exegesis...

Searches parent's direct children for name match (returns first match, 0 if not found). Takes entity (parent entity handle), childName (name string to search for). Returns child handle as Int (first matching child handle, 0 if not found or invalid parent). Validates childName!=nullptr and parent exists, iterates parent.children vector, compares each child.name with childName (exact string match, case-sensitive), returns first matching child->handle, returns 0 if no match or invalid parent.

Example

Example.bam
; No example implemented yet