HTML5 game development engine Pixi.js Full starter manual (ii) Element object property resolution

Source: Internet
Author: User

Next, let's explain the various properties of the object in the Pixi:

First of all, let's look at the various elements of the object inside exactly what kind of.

alpha

Number

The transparency of the entire stage object.

buttonMode

Boolean

Whether the rendering is a button. This author has not been tested yet:

cacheAsBitmap

Boolean

Sets an element that does not display the object cache as a bitmap.

children

Array

Returns an array that contains child elements.

defaultCursor

String

The style of the element after being mouse over. However, you must set interaction = True and Buttonmode = true as a precondition

filterArea

Rectangle

Set the range of certain special effects apps. 、

height

Number

The height of the element.

hitArea

Rectangle | Circle | Ellipse | Polygon

Element clickable Range

interactionManager

Interactionmanager

The interaction manage for this stage, manages all interactive activity on the stage

interactive

Boolean

Whether an element can interact

mask

Graphics

Sets a mask. Specifies the visible range of an element

parent

Displayobjectcontainer

The [Read Only] Parent object.

pivot

Point

Element center point,,..

position

Point

The relative position of the element intersection parent node.

renderable

Boolean

Whether the element is rendered

rotation

Number

Rotation angle.

scale

Point

Zoom magnification

visible

Boolean

is visible:

width

Number

Element width:

worldAlpha

Number

[Read Only] element transparency.

x

Number

The horizontal position relative to the parent element.

y

Number

The ordinate position relative to the parent element.

HTML5 game development engine Pixi.js Full starter manual (ii) Element object property resolution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.