Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

native 0.1.20 使用Graphics导致崩溃 #53

Open
jkd2972 opened this issue Sep 23, 2019 · 1 comment
Open

native 0.1.20 使用Graphics导致崩溃 #53

jkd2972 opened this issue Sep 23, 2019 · 1 comment

Comments

@jkd2972
Copy link

jkd2972 commented Sep 23, 2019

native 0.1.20 ,Shape对象,使用Graphics绘制一个矩形。运行后,点击这个矩形。崩溃。

@jkd2972
Copy link
Author

jkd2972 commented Sep 23, 2019

let rect = new egret.Shape();
rect.width = this.stage.stageWidth;
rect.height = this.stage.stageHeight;
rect.touchEnabled = true;
let g = rect.graphics;
g.beginFill(0x0000ff);
g.drawRect(0, 0, this.stage.stageWidth, this.stage.stageHeight);
g.endFill();
this.addChild(rect);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant