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

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

1871. 3D场景里面怎么画线条 [ 49%]

...le.log("线段数量:", wayList.length);         this.mainScene.addChild(pl);         for (let i = 1; i < wayList.length; i++) {             pl.addLine(wayList[i - 1], wayList[i], Laya.Color.RED, Laya.Color.RED);         } 2019-11-19 0 2 分享...

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

1872. 从Unity中编辑并导出摄像机(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 49%]

...加3D场景 var scene = Laya.loader.getRes("monkey/monkey.ls"); Laya.stage.addChild(scene); //从场景中获取摄像机 var camera = scene.getChildByName("Main Camera"); //后续对摄像机的逻辑操作....... } } ``` ​ 在Untiy中,摄像机默认名为“Main Camera”,因此在上述代...

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

1873. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 49%]

...nish(): void { //初始化3D场景 this.scene = (<Scene3D>Laya.stage.addChild(Loader.createNodes("res/threeDimen/scene/TerrainScene/XunLongShi.ls"))); //根据场景中方块生成路径点 this.initPath(this.scene); //获取可行走区域模型 var meshSprite3D: MeshSprite3D = (<MeshSprit...

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

1874. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 49%]

...,绘制到画布 this.img.skin = this.Res //添加到舞台 Laya.stage.addChild(this.img); } private cacheCanvas: Laya.HTMLCanvas private cacheTexture: Laya.Texture init(){ let rect = this.img.getSelfBounds() this.img.pivot(Math.round(rect.width / 2), Math.round(rect.height / 2)) let bound = this....

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

1875. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 49%]

....changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(progressBar); //时间间隔循环,每100毫秒改变一次数据 Laya.timer.loop(100, this, changeValue); } /***时间间隔循环回调,更新进度条***/ private function changeValue():void { //最大为1,...

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

1876. 关于项目分包的问题?? [ 49%]

...ign = StageAlign.TOP_LEFT; var loginView:LoginView = new LoginView(); this.addChild(loginView); } } } 提示:你需要确定4步 1、导入的fb(或 fd)项目,找到LoginView,手动调整分包的js文件路径(由于分包期间做过调整,所有分包后的js文件统一放在h5文...

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

1877. 用xml描述创建一个clip,interval字段妖孽无效 [ 49%]

...                }                 this.ElementView.addChild(clip);             } config.xml本份规矩,老老实实,勤勤恳恳用utf8编码的,长这个样子 <layout>         <clip id="1" res="res/logo.png" anchorX="0.5" anchorY="0.5" clipX="...

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

1878. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 49%]

...);                  sp.play();             Laya.stage.addChild(sp);                      sp.x = Laya.stage.width / 2;             sp.y = Laya.stage.height / 2;         }   发布成单机版apk在移动端安装运行,移动端报错提示: htt...

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

1879. 文字在框内滑动、滚动文本 [ 49%]

...   this.txt.fontSize=20;     this.txt.color="#ffffff";     Laya.stage.addChild(this.txt);     this.txt.on(Laya.Event.MOUSE_DOWN, this, startScrollText); } function startScrollText(){     this.prevX = this.txt.mouseX;     this.prevY = this.txt.mouseY;     Laya.stage.on(Laya.Event.MOUSE_M...

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

1880. 加载.atlas动画错误 [ 49%]

...3B,laya.utils.Handler.create(this,function(){ //添加到舞台 Laya.stage.addChild(roleAni); roleAni.play(); }));     代码就这几行.... 2018-03-22 0 0 分享 微博 QZONE 微信 wdmingzi2 赞同来自: 只是单纯的调用加载接口  然后就加载的时候出错......代理服务器的...

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