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

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

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

...; Stat.show(); sp=new Sprite(); sp.loadImage("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.d...

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

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

...,5,5"; progressBar.changeHandler = 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("进度:" + M...

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

1003. layanative安卓端需要怎么添加ttf字体,需要增加两种字体? [ 63%]

...xt.color = "#ff0000"; text.text = "你好"; text.pos(100, 100); Laya.stage.addChild(text);   text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.font = "remember"; text.pos(100, 200); Laya.stage.addChild(text); }   }   } 或者在config.js var  assetFontData...

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

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

...景图。 box = new Sprite(); //把这容器添加到舞台。 Laya.stage.addChild(box); //创建背景1 bg1 = new Sprite(); //加载并显示背景图1 bg1.loadImage("res/background.png"); //把背景1添加到容器 box box.addChild(bg1); //创建背景2 bg2 = new Sprite(); //加载并显示背景...

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

1005. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 63%]

..."res/room/othersay.png"; paopao.imgJudge.visible = true; } paopao.imgSayBg.addChild(div); gRoomView.chatBox.addChild(paopao); //更新高度 gRoomView.chatBox.height = gRoomView.chatBox.height + paopao.height; gRoomView.chatPanel.refresh(); gRoomView.chatPanel.vScrollBar.value = gRoomView.chatPanel....

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

1006. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 63%]

...1.ls", Laya.Handler.create(this, function(scene){ this._scene = Laya.stage.addChildAt(scene, 0); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们点击加载场景,再来看状...

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

1007. 网格像素线 · LayaAir3.4 · 引擎文档 · LAYABOX [ 63%]

...e3D: Laya.PixelLineSprite3D = new Laya.PixelLineSprite3D(3500); this.scene.addChild(sphereLineSprite3D); //设置像素线渲染精灵线模式 Tool.linearModel(sphere, sphereLineSprite3D, Laya.Color.GREEN); } 到此,像素线代码部分就介绍完了,往往我们也可以对一个外部模型...

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

1008. timeline播放完成Bug [ 63%]

...= Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.TimeLine(); tl.once('complete', this, function() { ape.x = 0; tl.reset(); tl.to(ape, { x: 100 }, 1000); tl.play(); }); tl.to(ape, { x: 100 }, 1000); tl....

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

1009. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 63%]

....regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报错 Main.js:61 Uncaught ReferenceError: ui is not defined 之前有人提过这个问题,但是一直都没有解答,也有人说要先注册class,但是也是没用的...

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

1010. laya2.12的input在安卓不起作用还报错 [ 63%]

...着急解决的let input = new Laya.Input() this.changeIDBtn.displayObject.addChild(input) input.y = -200; input.x = -200; input.text = 2000 + "" 附件 : --> 2021-12-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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