大约有 1,210 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0065 秒)
Laya_社区(874) Laya2.0_文档(85) Laya3.0_api(61) Laya2.0_api(58) laya_api(55) Laya_示例(32) Laya2.0_示例(27) Laya3.0_文档(18)
...容相关的链接 提交 1 个回复 xueLayaBox - 爱学习 赞同来自: var arr:Array<Laya.Image> = new Array<Laya.Image>(); 2018-04-09 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zxcmht310 相关问题 发起问题须...
来源: Laya_社区 发布时间: 20180409
...false,然后在触发其他操作时改变成true ,刚体就会消失 var ball = Matter.Bodies.circle(Matter.Composite.bounds(ragdoll1).min.x+20, Matter.Composite.bounds(ragdoll1).min.y-25, 25, { density:4, // 密度 restitution: 0.12 ,// 弹性 isStatic:true, render: { sprite: { texture: './res...
来源: Laya_社区 发布时间: 20180612
...} private function onLoadComplete():void { trace("资源加载完成!"); var button:Button = new Button("resource/ui/button.png","label");//创建一个 Button 实例对象 button ,传入它的皮肤skin和标签label。 button.x = 100;//设置 button 对象的属性 x 的值,用于控制 button...
来源: Laya3.0_api 发布时间: 20231115
...oadComplete));//加载资源。 } private function onLoadComplete():void { var tab:Tab = new Tab();//创建一个 Tab 类的实例对象 tab 。 tab.skin = "resource/ui/tab.png";//设置 tab 的皮肤。 tab.labels = "item0,item1,item2";//设置 tab 的标签集。 tab.x = 100;//设置 tab 对象的...
来源: Laya3.0_api 发布时间: 20231115
...行榜主域绘制开放数据域sharedCanvas时候报错。代码如下:var rankTexture = new Laya.Texture(Laya.Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小程序使用,非常费 let sprite = new Laya.Sprite(); sprite.graphics.drawTexture(rankTexture, 0, 0, rankTex...
来源: Laya_社区 发布时间: 20190920
...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精...
来源: laya_api 发布时间: 20170929
...** * @private * 清除当前请求。 */ protected function clear():void { var http:* = this._http; http.onerror = http.onabort = http.onprogress = http.onload = null; } 2016-12-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zhjinshib...
来源: Laya_社区 发布时间: 20161205
...到其他类里面则能检测到按键按下,却一直输出undefined var GameStart = (function (_super) { function GameStart() { GameStart.super(this); Laya.stage.on(Laya.Event.KEY_DOWN,LayaSample,Test); } function Test(e){ consol...
来源: Laya_社区 发布时间: 20180208
... this.scoreLabel=null; this.infoLabel=null; GameInfo.js: var GameInfo = (function (_super) { function GameInfo() { GameInfo.super(this); // this.infoLabel.text = "abc"; 这个也报异常应该是找不到infoLabel // 注册按钮点击事...
来源: Laya_社区 发布时间: 20171118
... = 'noborder'; Laya.stage.alignH = 'center'; Laya.stage.alignV = 'middle'; var homeUI = new HomeUI(); Laya.stage.addChild(homeUI); 4、我这里采用的是noborder模式来适配 根据官方给的适配说法 (以及过往的H5游戏的开发经验) 这种模式是将整个画布等比例...
来源: Laya_社区 发布时间: 20180504