大约有 987 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0107 秒)
Laya_社区(609) Laya2.0_文档(80) Laya3.0_api(67) Laya2.0_api(60) laya_api(56) Laya2.0_示例(41) Laya_示例(37) Laya3.0_文档(37)
...0, 0); Laya.stage.addChild(ape); ape.pos(0, 0); })); 业务: 图片服务器会修改上传新的图片,图片的文件名不变 流程: 我清理了一边缓存,确认了缓存里没有资源情况下重新向url获取请求 得到的...
来源: Laya_社区 发布时间: 20170831
...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
..., 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
...少量浏览器可以正常播放 1、video的位置可以改变,设置pos值即可 2、可以一张张去渲染播放,类似序列帧图集动画或者可以使用龙骨工具播放成一个骨骼动画,直接加载播放即可 2016-10-13 0 1 分享 微博 QZONE 微信 Charles 赞同来自...
来源: Laya_社区 发布时间: 20161013