大约有 989 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0082 秒)
Laya_社区(611) Laya2.0_文档(80) Laya3.0_api(67) Laya2.0_api(60) laya_api(56) Laya2.0_示例(41) Laya_示例(37) Laya3.0_文档(37)
...ounds(); console.log(bgBound.width/2) console.log(bgBound.height - 150) bt.pos(bgBound.width/2 - btBound.width/2,bgBound.height - 150) } } //启动游戏 new Game();打印结果: 0 -150 bgBound.width 和 bgBound.heigt 都为0 2016-08-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20160804
...lag: number = 1 Returns void shapeCast shapeCast(shape: ColliderShape, fromPosition: Vector3, toPosition: Vector3, out?: HitResult, fromRotation?: Quaternion, toRotation?: Quaternion, collisonGroup?: number, collisionMask?: number, allowedCcdPenetration?: number): boolean Defined in laya/d3/physics/...
来源: Laya3.0_api 发布时间: 20231115
...0, 0); Laya.stage.addChild(ape); ape.pos(0, 0); })); 业务: 图片服务器会修改上传新的图片,图片的文件名不变 流程: 我清理了一边缓存,确认了缓存里没有资源情况下重新向url获取请求 得到的...
来源: Laya_社区 发布时间: 20170831
..., r, "#ff0000");//画一个圆形的遮罩区域 cMask.pos(this.x+r, this.y+r); this.mask = cMask; //不加这一行图片正常显示,但是方图 //Laya.stage.addChild(cMask); //测试了坐标区域,完全正确正好在图像上 }))...
来源: Laya_社区 发布时间: 20181119
...x: number = 300; let y: number = 100; let scaleRatio: number = 1.3; sprite.pos(x, y); // sprite.graphics.drawCircle(texture.width/2, texture.height/2, 10, "#fff333"); //位置偏移 sprite.graphics.drawCircle(texture.width/2 - x/scaleRatio, texture.height/2 - y/scaleRatio, 10, "#fff333"); //位置...
来源: Laya_社区 发布时间: 20170821
....height; //添加2D精灵, this.owner.addChild(this.spRole); this.spRole.pos(0, 0); this.spRole.size(Laya.stage.width, Laya.stage.height); }); 2025-01-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 焰 相...
来源: Laya_社区 发布时间: 20250109
...ar=new ProgressBar(); progressBar.skin="commonUI/anniu05a.png" progressBar.pos(100,100); progressBar.value=0.5; Laya.stage.addChild(progressBar); 后台: Failed to load resource: net::ERR_FILE_NOT_FOUND(FILE///..../bin/commonUI/anniu05a$bar.png) [warn]Retry to load:/......./bin/commonUI/anniu05a$b...
来源: Laya_社区 发布时间: 20160729
...ack"); sp[j + i * 10].size(50, 50); sp[j + i * 10].pos(i * 60, j * 60); sp[j + i * 10].on(Laya.Event.MOUSE_OVER, this, over); sp[j + i * 10].on(Laya.Event.MOUSE_OUT, this, out); } } function over(e) { e.target.graphics.drawRect(0, 0, 50, 50...
来源: Laya_社区 发布时间: 20160715
...templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Laya.Browser.width / 2, Laya.Browser.height / 2 + 100); //this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); } private onError() { console.error("load spine error"); } priva...
来源: Laya_社区 发布时间: 20210813
...leton.templet = templet; this.owner.addChild(this.skeleton); this.skeleton.pos( this.pageWidth / 2, this.pageHeight / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); }); } private play(): void { if (++this.index >= this.skeleton.getAnim...
来源: Laya_社区 发布时间: 20230703