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

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

221. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 51%]

...x=speedx; this.bgimg.speedy=speedy; console.log("funmovebg"+movetox); Laya.timer.frameLoop(speed, this, funbg);     2017-10-25 0 2 分享 微博 QZONE 微信 yinglei999 赞同来自:     var Loader = Laya.Loader;     var loaderHandler = Laya.Handler; var scronw=640; var scronh=960;    ...

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

222. 高级应用-寻路导航 [ 51%]

...ntCount].x, this.path[this.nextPathIndex++ % this.pointCount].z); }); Laya.timer.loop(40, this, loopfun); } function loopfun() { if (this._everyPath && this.index ; private _everyPath: any; private _position: Laya.Vector3 = new Laya.Vector3(0, 0, 0); private _upVector3: Laya.Vector3 = new Laya.Vecto...

来源: Laya_示例 发布时间: 20251209

223. Laya.Video内存泄漏问题 [ 51%]

....load(blob_url); Laya.stage.addChild(video); video.play(); v = video; Laya.timer.once(5000, this, function() { v.destroy(); }); }顺便提供一个简单的修复方法: laya.device.js Line 623: 增加以下代码while(this.videoElement.childElementCount) { this.videoElement.firstChild.remove(); ...

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

224. ProgressBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 51%]

...dler = new Handler(this, onChange); Laya.stage.addChild(progressBar); Laya.timer.loop(100, this, changeValue); } function changeValue() { if (progressBar.value >= 1) progressBar.value = 0; progressBar.value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"...

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

225. 请问怎么制作一个layabox js版本的加载效果 [ 50%]

...eHandler = new Handler(this, null); Laya.stage.addChild(progressBar); Laya.timer.loop(300, this, changeValue); } function changeValue() { if (progressBar.value >= 1){ progressBar.value = 0; Laya.stage.removeSelf(); //将登录页面从内存销毁 // Laya.stage.destroy(); Laya.stage.addChild(new ...

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

226. laya.display.FrameAnimation [ 50%]

...被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放,位移效果。 矩阵更多信息请参考 Matrix Sprite viewport : ...

来源: laya_api 发布时间: 20170929

227. win10的系统,没有安装杀毒软件,也没有设置兼容模式,直接解压后打开窗口报错,说是窗口出现故障,请重启该窗口从上次停止的位置继续。有没有什么解决方法。 [ 50%]

...,不会生成场景类了,此时该如何获得场景内的元素 Laya.timer.loop()如何停止 Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 ios14系统下 blendMode='lighter' 图片异常 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 求教: sou...

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

228. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 50%]

...ite(); sp2.pos(300, 500); Laya.stage.addChild(sp2); let r: number = 0 Laya.timer.loop(100, this, () => { if (r >= 360) r = 0; r++; sp.graphics.clear(true); sp.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); sp2.graphics.clear(true); sp2.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); }) 附件 : -->...

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

229. 关于3D物件半透明漫反射率(官网上的例子)的BUG。 [ 50%]

...        // var vect = new Laya.Vector3(0.1,0.1,0);         // Laya.timer.loop(10,null,function(){         //     box.transform.rotate(vect,true,false);         // });                   2018-01-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

230. laya.spine.SpineSkeleton_API3.0 [ 50%]

...e scrollRect skewX skewY skinName source stage staticCache templet texture timer transform url viewport visible width x y zOrder Methods _initialize _processActive addAnimation addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender de...

来源: Laya3.0_api 发布时间: 20231115