Developers Manual > Cocos Studio > Scene Editor > Scene Component > Scene Component Sprite

Scene Component Sprite

Icon

Description

The Sprite component contains the function of rendering a png texture. After binding to a sprite component, a NULL object will be modified to a png object.

Property

For more information, please see Scene Component general properties.

feature

Name

The component’s name, which can let us get component in programs (getComponent). The component’s name can be amended and the default name is CCSprite.

SpriteFile

The path of the png file.

5-3-2-img-01.png (1.5 kB) hanrea@qq.com, 2013-12-04 08:02

5-3-2-img-02.png (3.9 kB) hanrea@qq.com, 2013-12-04 08:02

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.