Creates a new Texture as a child of the frame

Signature:

texture = Frame:CreateTexture(["name" [, "layer" [, "inherits"]]])

Arguments:

  • name - Global name for the new texture (string)
  • layer - Graphic layer on which to create the texture; defaults to ARTWORK if not specified (string, layer)
  • inherits - Name of a template from which the new texture should inherit (string)

Returns:

  • texture - Reference to the new Texture object (texture)