Table of Contents

Sprite:contains

Available since version: Gideros 2011.6

Description:

Determines whether the specified sprite is contained in the subtree of
this Sprite instance.

Syntax:

(bool) = Sprite:contains(child)

Parameters:

  • child: (Sprite) The child object to test.

Return value:

  • bool: `true` if the child object is contained in the subtree of this `Sprite` instance, otherwise `false`.