OptionaladdEvent that runs when host game obj is added to scene.
OptionaldestroyEvent that runs when obj is removed from scene.
OptionaldrawEvent that runs every frame after update.
OptionaldrawDraw debug info in inspect mode
OptionalfixedEvent that runs at a fixed frame rate.
OptionalidComponent ID (if left out won't be treated as a comp).
OptionalinspectDebug info for inspect mode.
flexbox CSS properties.
OptionalrequireWhat other comps this comp depends on.
OptionalupdateEvent that runs every frame.
insert the object into its parent layout tree (if it has one). called automatically when the object is added.
Optionalindex: numberindex to insert the object into. defaults to appending.
force a layout calculation and updates all children. parents will not be effacted
drop the object from the layout tree (if it's in one)
position relative to top left of the containing box
insert a child Yoga node. called automatically when a child game object is added.
Optionalindex: numberindex to insert the object into. defaults to appending.
tell yoga to re calculate the object size using its measure function.
fires when the object is moved from a layout calculation.
the object's real size and position may or may not be updated because you are expected to handle them yourself or use helper functions. use getComputedLayout or similar functions instead.
set the measure function. the measure function is used to determined the object size.
update the object size and position. used internally.
base flex container component interface