Element which may or may not be an ancestor of this one.
Returns
Name
Type
Description
within
boolean
True if other is an ancestor of this element, false otherwise.
Examples
localpause_menu=crystal.Overlay:new();localhud=crystal.Overlay:new();localhealth_bar=hud:add_child(crystal.Overlay:new());localhealth_bar_background=health_bar:add_child(crystal.Image:new());print(health_bar_background:is_within(hud));-- Prints "true"print(health_bar_background:is_within(menu));-- Prints "false"