Skip to content

Cocos Creator1.3.1中运行设置path没有效果 #1

@and80506

Description

@and80506

simplify.js中,this.path.fillColor = 'none'; this.path.lineWidth = 5; 这两行设置没有效果。线宽还是1px。

cc.Class({
extends: cc.Component,

// use this for initialization
onLoad: function () {
    this.path = this.addComponent('R.path');
    this.path.fillColor = 'none';
    this.path.lineWidth = 5;
    this.path.showHandles = true;

    cc.eventManager.addListener({
        event: cc.EventListener.TOUCH_ONE_BY_ONE,
        onTouchBegan: this.onTouchBegan.bind(this),
        onTouchMoved: this.onTouchMoved.bind(this),
        onTouchEnded: this.onTouchEnded.bind(this),
    }, this.node);
}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions