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.
drop the object from the layout tree (if it's in one)
update the object size and position. used internally.
base flex object component interface.
components implementing this don't necessary need to be able to contain other flex objects.
See
ContainerComp