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

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

1581. Laya3.0 图片拼合缩放会导致两张图片之间有一条横线[已解决] [ 61%]

...博 QZONE 微信 biubiubiu 赞同来自: 以下是测试代码         this.owner.scene.scale(1.25, 1.25) //使用缩放后 图片拼合会多一条线 2.0中没有此问题         Laya.loader.load("http://103.219.177.59:63344/%2 ... ot%3B, Laya.Loader.TEXTURE2D).then((texture: Laya.Texture...

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

1582. sprite 设置为静态变量后,无法从舞台移除 [ 61%]

...mage("background.jpg"); Laya.stage.addChild(sp); Laya.stage.on(Event.CLICK,this,onClick); function onClick():void { // TODO Auto Generated method stub Laya.stage.off(Event.CLICK,this,onClick); Laya.stage.removeChild(sp); Loader.clearRes("background.jpg"); sp.destroy(); } } } } 2016-09-05 0 0 分享 ...

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

1583. 打APK后加载unity导出资源出错 [ 61%]

...写的是 var path="map/mapitem/"+mdai.mapName+"1.lh";         if(this.PRINT_LOG){             console.log("准备读取区域"+curIndex+" 的 路径: "+path+"地图");         }         Sprite3D.load(path,Handler.create(null,function(sp){             ...

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

1584. JS的WebGL模式下使用Laya.Video报跨域错误 [ 61%]

...resource/2.webm'; var video = new Laya.Video(); video.on('loadedmetadata', this, function() { console.info(video.width + ',' + video.height); Laya.stage.addChild(video); video.play(); }); video.load(video_url); Laya版本是1.7.4Beta Chrome 58下运行报错   laya.device.js增加跨域属性后解...

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

1585. 看一下这是什么问题,运行报错 [ 61%]

...错 var MPanel1 = (function (_super) { function MPanel1() { MPanel1.super(this); } Laya.class(MPanel1, "MPanel1", _super) var _proto = MPanel1.prototype; return MPanel1; }(ui.Panel1UI));代码如上,报错如下   附件 : --> 2018-02-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

1586. 关于微信小游戏渲染子域图的问题 [ 61%]

...undle.js:8383:15)   说是Texture类value && (value._addReference(this._referenceCount)); 这里value._addReference没有,value是个[object HTMLCanvasElement],,死活都画不出来,,   主域代码 Laya.timer.once(2000, this, function():void{ var sprite:Sprite = new Sprite(); s...

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

1587. 播放动画(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 61%]

...态 ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function():void{ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` ![](img/6.gif)(图6)

来源: Laya2.0_文档 发布时间: 20210715

1588. 飞机大战js源码中判断语句问题 [ 61%]

...景位置的更新,实现背景滚动效果。 Laya.timer.frameLoop(1, this, onLoop); })() /** * 在onLoop函数内,更新box容器的位置。 */ function onLoop() { //设置背景容器由上向下移动 1px box.y += 1; //当背景1向下移动出游戏的显示区域 480*852,则将背景1...

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

1589. 解决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop() [ 61%]

...  if (!ILaya.stage.isVisibility) {                 // this._timeId = window.setInterval(this._enterFrame, 1000);                 ILaya.m_worker.postMessage(['wait']);             }             else if (this._timeId != 0) {     ...

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

1590. laya.ui里的tag不能赋值使用? [ 61%]

...sh使用吗?     masterbtn.tag = 0; masterbtn.on(Laya.Event.MOUSE_UP,this,this.onItemMaster); _proto.onItemMaster = function(params){ var btn = params.currentTarget; console.log("----------------------- ",btn.tag);//我赋值是0,但这里调用获取是2?? } 2017-11-20 添加评论 免费...

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