BlzFrameGetChild
- Parameters
frame framehandleindex integer- comment
Returns a direct child frame at a zero-based index. Valid indices are
0toBlzFrameGetChildrenCount(frame) - 1.StringandTextureSimpleFrame children are not included.- bug
This native performs no bounds checking. An invalid index can crash the game.
- bug
In affected 1.32 builds, acquiring a frame through
BlzFrameGetChildbefore acquiring the same frame throughBlzGetOriginFramecan make the later origin-frame lookup return an invalid handle.- note
Default UI child counts and indices can change with game state. Prefer named frames or origin frames when available.
- note
The first call that returns a child not yet known to the map script consumes a handle ID. Acquire it for all players before using it inside a
GetLocalPlayer()block.- async
- This function is asynchronous. The values it returns are not guaranteed to be the same for each player. If you attempt to use it in an synchronous manner it may cause a desync.
- patch
1.32.10.18820
- Source
- common.j (raise an issue to discuss on Github or submit a PR)
- return type
framehandle- Source code
native BlzFrameGetChild takes framehandle frame, integer index returns framehandle