Cocos creator node api

setPosition. Sets the position (x, y, z) of the node in its parent's coordinates. Usually we use cc.v2(x, y) to compose ...

Cocos creator node api

setPosition. Sets the position (x, y, z) of the node in its parent's coordinates. Usually we use cc.v2(x, y) to compose cc.Vec2 object, in this case, position.z ... ,Basic Node and Component API. We learned how to get access to node and component instances with previous article Access node and other component.

相關軟體 Cocos Creator 資訊

Cocos Creator
Cocos Creator 是一個完整的遊戲開發工具包和工作流程,包括一個遊戲引擎(基於 Cocos2d-x),資源管理,場景編輯,遊戲預覽,調試和發布一個項目到多個平台. 我們首次引入了實體 - 組件結構和數據驅動的工作流程到 Cocos2d- x 系列。使用 JavaScript,您可以立即編寫組件腳本。編輯器和引擎擴展也是使用 JavaScript 編寫的,因此您可以用一種編程語言製作遊戲並... Cocos Creator 軟體介紹

Cocos creator node api 相關參考資料
Cocos Creator 2.1 Manual - Common Node and Component API

Basic Node and Component API. We learned how to get access to node and component instances with previous article Access node and other component.

https://docs.cocos.com

Cocos Creator 2.4 API - Node

setPosition. Sets the position (x, y, z) of the node in its parent's coordinates. Usually we use cc.v2(x, y) to compose cc.Vec2 object, in this case, position.z ...

https://docs.cocos.com

Cocos Creator 2.4 Manual - Common Node and Component API

Basic Node and Component API. We learned how to get access to node and component instances with previous article Access node and other component.

https://docs.cocos.com

Common Node and Component API · cocos-creator-docs

Basic Node and Component API. We learned how to get access to node and component instances with previous article Access node and other component.

https://joyhooei.gitbooks.io

Node - Cocos Creator 2.1

getComponentsInChildren Returns all components of supplied type in self or any of its children. addComponent Adds a component class to the node. _addComponentAt ...

https://docs.cocos.com

Node - Cocos Creator 3.8 API

Use this method to register touch or mouse event permit propagation based on scene graph,These kinds of event are triggered with dispatchEvent, the dispatch ...

https://docs.cocos.com

Node · GitBook - Why Cocos2d-x

Node Class. Extends _BaseNode. Module: cc. Class of all entities in Cocos Creator scenes. Node also inherits from Event Target, it permits Node to dispatch ...

https://docs.cocos2d-x.org

Node 类型

Host generated Cocos Creator 2.x API. Contribute to cocos-creator/creator-api-docs-2.x development by creating an account on GitHub.

https://github.com

Node 类型 - Cocos Creator 3.8 手册

addComponent 向节点添加一个指定类型的组件类,你还可以通过传入脚本的名称来添加组件。 _addComponentAt This api should only used by undo system; removeComponent ...

https://docs.cocos.com