• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 267 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0043 秒)

251. 对staticCache的疑问 [ 48%]

... 微信 hujian0318 赞同来自: var sp:Sprite = new Sprite(); sp.graphics.drawRect(0, 0, 100, 100, "#ffff00"); Laya.stage.addChild(sp); sp.x = 50; trace(sp.x); // 输出50 sp.cacheAs = "bitmap"; sp.staticCache = true; sp.x = 100; trace(sp.x); // 输出100,且编译出来的效果也是在这个...

来源: Laya_社区 发布时间: 20171120

252. 可以帮我测试一下吗? 使用mask的场景,放着就会出现记忆体用完的讯息? [ 48%]

...码有什么问题? let s: Laya.Sprite = new Laya.Sprite(); s.graphics.drawRect(10, 10, 580, 470, "#000000"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什...

来源: Laya_社区 发布时间: 20180720

253. video在安卓手机上,怎么设置同层播放,还有怎么设置隐藏控制播放按钮 [ 48%]

...ize(GoldConsts.contextWidth, GoldConsts.contextHeight); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#cccccc"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Event.RESIZE, this, Util...

来源: Laya_社区 发布时间: 20180313

254. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...使用getBounds/ getGraphicBounds。 var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); getBounds可以满足多数多数需求,但由于其需要计算边界,不适合频繁调用。 设置容器的aut...

来源: Laya3.0_文档 发布时间: 20251010

255. 模拟石头下落过程不明抖动 [ 48%]

... ){ return this.balls[i]; } } let ball = new Laya.Sprite(); ball .graphics.drawRect( 0,0,140,140,"#d9d919"); this.balls.push( ball ); return ball; } } new TexasMain(); [/i][/i] 附件 : --> 不明抖动.rar 2018-02-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

来源: Laya_社区 发布时间: 20180226

256. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 47%]

...); reference.size(Laya.stage.width, Laya.stage.height); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); let tipElmt = Laya.Browser.createElement("img"); tipElmt.src = getResURI("ui/guide_tip.png"); tipElmt.style.zInddex = Laya.Render.canvas.style.zIndex + 2; Laya.Bro...

来源: Laya_社区 发布时间: 20180802

257. 发现TimeLine的一些问题,像是BUG [ 47%]

...eateSprite(xx:int,yy:int):Sprite { var sp:Sprite=new Sprite(); sp.graphics.drawRect(0, 0, 50, 50, "#ffffff"); sp.x=xx; sp.y=yy; Laya.stage.addChild(sp); return sp; } //添加缓动的函数 private function addTime(timeLine:TimeLine,sp:Sprite,yy:Number):void { timeLine=new TimeLine(); timeLine.to(sp...

来源: Laya_社区 发布时间: 20161207

258. Panel初始化BUG [ 45%]

...{ let panel = new Laya.Panel(); Laya.stage.addChild(panel); panel.graphics.drawRect(0, 0, 300, 300, "#ffcccc"); panel.width = 300; panel.height = 300; panel.pos(200, 300); let image = new Laya.Image(); image.skin = "comp/image.png"; image.pos(100, 0); panel.addChild(image); panel...

来源: Laya_社区 发布时间: 20211108

259. sprite点击事件 位置便宜 [ 44%]

...unction createInteractiveTarget() { var rect = new Sprite(); rect.graphics.drawRect(0, 0, 200, 200, "#D2691E"); rect.size(200, 200); rect.pivot(100,100); rect.x = Laya.stage.width /2; rect.y = Laya.stage.height / 2; // let hitArea = new Laya.Rectangle(rect.x-100,rect.y-100,200,200); // rect.hitArea ...

来源: Laya_社区 发布时间: 20180205

260. Laya 绑定显示内容到骨骼动画 [ 42%]

...urce:BindSource=new BindSource("gongji");         source.graphics.drawRect(0,0,20,20,"#FFFF00");          this.__bind.bind(source);    }  2019-08-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...

来源: Laya_社区 发布时间: 20190805