Joint:child

Returns the child this joint is affecting.

Usage

joint:child()

Returns

Name Type Description
element UIElement Child UI element.

Examples

local overlay = crystal.Overlay:new();
local image = overlay:add_child(crystal.Image:new());
assert(image:joint():child() == image);
assert(image:joint():parent() == overlay);

This site uses Just the Docs, a documentation theme for Jekyll.