大约有 245 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
...ani.interval = 30; ani.index = 1; ani.play(); Laya.stage.addChild(ani); postMessage(ani);//将获取到的数据发送会主线程 } 但是会报错,Uncaught ReferenceError: Laya is not defined laya怎么定义? 2018-01-08 0 0 分享 微博 QZONE 微信 为什...
来源: Laya_社区 发布时间: 20180108
...加这一行图片正常显示,但是方图 //Laya.stage.addChild(cMask); //测试了坐标区域,完全正确正好在图像上 })); 2018-11-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...
来源: Laya_社区 发布时间: 20181119
...drawTexture(texture);//把截图绘制到精灵上 * Laya.stage.addChild(sp);//把精灵显示到舞台 * * <p>也可以获取原始图片数据,分享到网上,从而实现截图效果,示例:</p> * ...
来源: Laya_社区 发布时间: 20180719
...ture.x = mStartX; mArmature.y = mStartY; //mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //chang...
来源: Laya_社区 发布时间: 20170818
... this.list = list; Laya.stage.addChild(list); this.hitArea = new Laya.HitArea(); this.hitArea.hit.drawRect(list.x, list.y -100,list.width, list.height, "#000000"); //限制鼠标点击区域 ...
来源: Laya_社区 发布时间: 20210122
...Sprite$/_initRenderFun() at laya.display::Sprite/render() at laya.display::Stage/render() at laya.display::Stage/_loop() at laya.renders::Render/_enterFrame()然后尝试用graphics直接绘制图形,绘制了一个星星,可以运行 之后做了各种尝试,总之貌似需要载入图片...
来源: Laya_社区 发布时间: 20200217
...loadImage方法为什么不触发complete? var logo = new Sprite(); Laya.stage.addChild(logo); logo.loadImage("img/load_logo.png", 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); })); 我在laya1.0这么写,触发complete没毛病,为什么到了2.0这个complete不触发?...
来源: Laya_社区 发布时间: 20181010
...享 微博 QZONE 微信 qian 赞同来自: 把背景颜色改为 Laya.stage.bgColor = "#fffffe"; 就可以了 下个版本修复 2018-03-27 0 8 分享 微博 QZONE 微信 ccloving 赞同来自: 2018-03-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题...
来源: Laya_社区 发布时间: 20180327
... tiledMap.createMap("../res/dt.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); 调用后报错TypeError: Cannot read property 'split' of undefined at TiledMap.__proto.mergePath (file:///C:/Users/Administrator/Documents/myLaya/Hello/bin/libs/laya.tiledmap.j...
来源: Laya_社区 发布时间: 20181026
...Accessors altKey charCode ctrlKey key keyCode keyLocation metaKey shiftKey stageX stageY touches Methods setTo stopPropagation isMouseEvent Constructors constructor new Event(): Event Defined in laya/events/Event.ts:195 Returns Event Properties button button: number = 0 Defined in laya/events/Event....
来源: Laya3.0_api 发布时间: 20231115