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

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

721. skin加载url资源不会刷新 [ 50%]

...0, 0);             Laya.stage.addChild(ape);             ape.pos(0, 0);         }));     业务: 图片服务器会修改上传新的图片,图片的文件名不变 流程: 我清理了一边缓存,确认了缓存里没有资源情况下重新向url获取请求 得到的...

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

722. laya.d3.physics.PhysicsSimulation_API3.0 [ 50%]

...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

723. 2.0)js按照官方遮罩写的程序,无法正常执行, 请问怎么回事,代码见内。 [ 50%]

..., r, "#ff0000");//画一个圆形的遮罩区域              cMask.pos(this.x+r, this.y+r);              this.mask = cMask; //不加这一行图片正常显示,但是方图              //Laya.stage.addChild(cMask); //测试了坐标区域,完全正确正好在图像上 }))...

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

724. 求问sprite放大后,graphics绘制的图像位置偏移 [ 50%]

...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

725. [LayaAir3]3D场景里面鼠标感应区域 3.2.1跟3.3不同 [ 50%]

....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

726. 如何从代码中创建UI,progressbar [ 50%]

...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

727. 一个LayaAir moveout target 设计上的疑问? [ 50%]

...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

728. spine 播放错乱 [ 50%]

...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

729. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 50%]

...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

730. 在网页设定区域内播放video。 [ 50%]

...少量浏览器可以正常播放 1、video的位置可以改变,设置pos值即可 2、可以一张张去渲染播放,类似序列帧图集动画或者可以使用龙骨工具播放成一个骨骼动画,直接加载播放即可   2016-10-13 0 1 分享 微博 QZONE 微信 Charles 赞同来自...

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