BlzFrameSetParent
- Parameters
frame framehandleparent framehandle- comment
- bug
In some cases, changing the parent after setting MDX model with
BlzFrameSetModelcan speed up the animations of the model.- bug
For Frame-family frames, this native does not remove the frame from the old parent's child list. The frame then belongs to both parents, which can misalign its clickable area from its visual position. Create the frame under its final parent instead. SimpleFrames do not have this dual-parent bug.
- bug
Setting a frame's parent to itself or one of its descendants creates a cycle and can crash the game.
- bug
Do not call this native on
StringorTexturechildren of a SimpleFrame; doing so can crash the game. Do not mix Frame and SimpleFrame families.- patch
1.31.0.11889
- Source
- common.j (suggest an edit or discuss on Github)
- return type
nothing- Source code
native BlzFrameSetParent takes framehandle frame, framehandle parent returns nothing