大约有 1,038 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0047 秒)
Laya_社区(609) Laya2.0_文档(86) Laya3.0_api(75) Laya2.0_api(62) laya_api(57) Laya2.0_示例(53) Laya_示例(49) Laya3.0_文档(47)
...ntent) { var cacheBox = new Box(); cacheBox.cacheAsBitmap = true; cacheBox.pos((this._isVertical ? 0 : startY) * cellWidth, (this._isVertical ? startY : 0) * cellHeight); this._content.addChild(cacheBox); this._content.optimizeScrollRect = true; box = cacheBox; } else { [b] var arr = []; [/b] for (v...
来源: Laya_社区 发布时间: 20180418
...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeInputChild removeSelf render repaint replaceChild runCallLater scale setChildIndex setSelfBounds set_height set_scaleX set_scaleY set_transform set_...
来源: Laya3.0_api 发布时间: 20231102
..., 修改stage的scale后,会发生异常情况 Text类中竟然没有pos函数的api~ safari浏览器 图片异常 问题状态 最新活动: 2022-01-07 18:01 浏览: 7612 关注: 3 人 devyding • 2021-10-14 11:26 弱弱问一下,下个版本大概啥时候出?有没有可能给个临时...
来源: Laya_社区 发布时间: 20211013
...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
...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
...g.on("click",this,this.switchImg); //设置图片坐标 this.img.pos(100,50); } private switchImg():void{ //清空绘制 this.img.graphics.clear(); //获得要切换的图片资源路径 var imgUrl:String = (this.flag = !this.flag)? this.monkey2:this.monkey1; //获取图片...
来源: Laya_社区 发布时间: 20180226