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

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

1871. 在开启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

1872. 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

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. 关于项目分包的问题?? [ 49%]

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

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

1875. 用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

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

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

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

1877. 文字在框内滑动、滚动文本 [ 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

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

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

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

1879. 模型的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之模型和网格) [ 49%]

...模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMes...

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

1880. 模型的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之模型和网格) [ 49%]

...模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMes...

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