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

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

711. 请问我用网络格式加载成功后,在服务器替换image.atlas和images.png重新打开小游戏没有重新加载服务器的png,只重新加载了atlas [ 45%]

...type: Laya.Loader.IMAGE }, ];    Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));     RTX截图未命名.png ============================================================================== 打印了一下 https://piggy.com/images/boss.png文件,每次都从服务器上重...

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

712. Uncaught TypeError: Cannot read property 'props' of undefined [ 45%]

...3D场景 Laya.Scene3D.load("LayaScene_Laya3D01/Laya3D01.ls",Laya.Handler.create(null,function(scene){ Laya.stage.addChild(scene); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //加载到场景 scene.addChild(camera); //移动摄像机位置 c...

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

713. 修改position修改localPosition结果不一致(同处于3d场景下的两个节点) [ 45%]

...aya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Han...

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

714. 用unity插件导出lh格式文件,再代码中加载使用的问题 [ 45%]

...: Scene3D;             Scene3D.load("res/laya-test.ls",Handler.create(null,function(sp:Scene3D):void{                 scene = Laya.stage.addChild(sp) as Scene3D;             }));   找到对应的示例代码了,但是编译报错。。。。用的是layaAi...

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

715. 粒子在webgl情况和canvas情况存在显著差异,请看图 [ 45%]

...th += "../../"; Laya.loader.load("res/particles/GravityMode.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); })(); function onAssetsLoaded(settings) { data = { "minStartColor": { "0": 1, "1": 0, "2": 0, "3": 1 }, "boxEmitterVelocity": { "0": 0, "1": 0, "2": 0 }, "minHorizontalStartRa...

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

716. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 45%]

...= "36px Arial";     Laya.loader.load("data/Questv1_Regular.ttf", Handler.create(this,onLoaded), null, Loader.BUFFER); }   private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("data/Questv1_Regular.ttf");   if(arr && Browser.window.conch) { Browser.window.conch.setFon...

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

717. 发现TimeLine的一些问题,像是BUG [ 45%]

...ya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 Laya.stage.bgColor="#353535"; sp1=createSprite(50,50);//创建方块1 sp2=createSprite(250,50);//创建方块2 sp3=createSprite(450,50);//创建...

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

718. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 45%]

...(`${this.ANIMATION_PATH}move${i}.mc`); Laya.loader.load(urls, Laya.Handler.create(this, () => { for (let i = 1; i <= 8; i++) { const clipPath = `${this.ANIMATION_PATH}move${i}.mc`; // 检查资源是否存在 if (Laya.loader.getRes(clipPath)) { this.loadedClips.push(clipPath); } } console.log(...

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

719. 无法触发浏览器文件上传框 [ 45%]

...structor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let button = new Laya.Button(skin, '上...

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

720. 滤镜的集中实现 [ 45%]

...L); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //原始位图 createImg(200,50); //红色滤镜 creteRedFilter(); //创建发光滤镜位图**/ createGlowFilter(); //创建阴影滤镜位图 createShadeFilter(); //创建糊滤滤镜位图 createBlurFilter();           /**创建位...

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