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

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

741. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 52%]

...ris/naruto2.ani"); //添加到舞台 var apesCtn = new Laya.Sprite(); Laya.stage.addChild(apesCtn); var _this = this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = ...

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

742. 关于大量图片加载绘制后的内存暴增的疑问 [ 52%]

...理 public function Demo() { Laya.init(800,1000,WebGL); Stat.show(); Laya.stage.bgColor="#EEFFCC"; //预加载图集 Laya.loader.load("res/atlas/bag.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { sp=new Sprite(); Laya.stage.addChild(sp); //每隔0.05秒...

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

743. 3D中摄像机绕物体旋转该如何实现? [ 52%]

...Distance = Vector3.distance(this.transform.position, this.AroundPos); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouse...

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

744. 【紧急】laya2.0的loadImage方法为什么不触发complete? [ 52%]

...loadImage方法为什么不触发complete? var logo = new Sprite(); Laya.stage.addChild(logo); logo.loadImage("img/load_logo.png", 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); })); 我在laya1.0这么写,触发complete没毛病,为什么到了2.0这个complete不触发?...

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

745. Laya.Video内存泄漏问题 [ 52%]

...ar video = new Laya.Video(); video.loop = true; video.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.childEl...

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

746. 官方案例里摄像机绕物体旋转脚本的问题 [ 52%]

...Distance = Vector3.distance(this.transform.position, this.AroundPos); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouse...

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

747. 感觉实例之间是关联的,求指教。(已解决) [ 52%]

...hild(img); var poker = new Poker(img,tempImageName); poker.show(); // Laya.stage.addChild(img); } } return Panel1; }(ui.Panel1UI));[/i] 这是扑克类[i]/* * 补克类 */ var Poker = (function () { function Poker(img,tempImageName) { this.imag= img; this.imageName=tempImageName; this.imag.on(Laya.E...

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

748. 分享:List相关(Item增删功能) [ 52%]

...blic function LayaUISample() { //初始化引擎 Laya.init(600, 800); Laya.stage.bgColor = "#ffcccc"; //加载界面需要的资源文件 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 listP ...

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

749. 绘制能力 · LayaAir3.4 · 引擎文档 · LAYABOX [ 52%]

...坐标 path.push(-33, -33);//五角星J点坐标 sp.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50"); this.owner.addChild(sp); 代码运行效果如下图所示: (图4-5) 通过上面的示例代码的写法,是不是感觉代码的可读性得到了增强,...

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

750. 加载.ls场景文件,销毁场景,再加载同一场景,想恢复初始状态,结果报错【附Demo】 [ 51%]

...s:13486)     at Scene3D.__proto._setParent (laya.core.js:18511)     at Stage.__proto.addChild (laya.core.js:13290)     at Main.Complete3D (Main.ts:48)     at Handler.__proto.runWith (laya.core.js:1400)     at LoaderManager.__proto._createOne (laya.core.js:14594)     at LoaderManager.__pr...

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