Cocos Creator API

1.0.0

Cocos Creator is a highly customizable game development tool that utilizes the power of cocos2d-x.

_ComponentAttributes

Module: cc

Properties

requireComponent Component

Automatically add required component as a dependency.

disallowMultiple Component

If specified to a type, prevents Component of the same type (or subtype) to be added more than once to a Node.

menu String

The menu path to register a component to the editors "Component" menu. Eg. "Rendering/Camera".

executeInEditMode Boolean

Makes a component execute in edit mode. By default, all components are only executed in play mode, which means they will not have their callback functions executed while the Editor is in edit mode.

playOnFocus Boolean

This property is only available if executeInEditMode is true. If specified, the editor's scene view will keep updating this node in 60 fps when it is selected, otherwise, it will update only if necessary.

inspector String

Specifying the url of the custom html to draw the component in inspector.

icon String

Specifying the url of the icon to display in inspector.

help String

The custom documentation URL

There are no properties that match your current filter settings. You can change your filter settings in the index section on this page. index