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

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

731. 图片mask失效问题. [ 58%]

...kimg.loadImage("http://img.diyphoto.cn/Mask/im ... ot%3B,0,0,500,500, Handler.create(this,function():void{ photoimg.removeChild(maskimg); })); }); 必须这么写才行 先添加 在移除 ljy328803417 • 2018-02-26 17:40 我也出现了上面的问题,结果发现是显示对象没高宽问...

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

732. laya3.0中jszip使用异常 [ 58%]

... Laya.loader.load([{ url: zipUrl, type: Laya.Loader.BUFFER }], null, Laya.Handler.create(this, this.onLoadCfg, null, false)).then(             (value) => {                 JSZip.loadAsync(value).then(                     (zipData: JSZip) => {                   ...

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

733. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 58%]

...load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(...

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

734. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 58%]

...load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(...

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

735. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 58%]

...F/Conventional/JJF.lh"];         Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete));     }     onComplete(){         //创建场景         let scene = Laya.stage.addChild(new Laya.Scene3D());         //创建相机         let ca...

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

736. 小白求助,关于时间轴动画如何设置播放一次后消失? [ 58%]

...置播放一次后消失? Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { var tl = new Laya.Animation(); tl.loadAnimation("democesi.ani"); Laya.stage.addChild(tl); tl.play(); tl.pos(302,650); } 2018-01-17 添加评论 免费帖 --> 分享 微博...

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

737. 模型资源释放 [ 58%]

...放的资源配置表 Laya.loader.load([{url:assetsUrl,type:Loader.JSON}], Handler.create(this,onAssetsOK,[assetsUrl])); } /**加载资源释放表完成后**/ private function onAssetsOK(assetsUrl:String):void { //获取加载的数据(Json数组转化成数组) var arr:Array=Laya.loader.getRes...

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

738. drawTexture的matrix参数是怎么用的 [ 58%]

...据子节点对象,获取子节点的索引位置。参数是什么 Laya.Handler.create 加载图片回调参数问题 Dispather.event参数传的是数组,为什么收到的参数却是个int类型? http 请求 once 的 回调参数,如何传递和接收? 点击按钮打开对话框的时...

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

739. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 58%]

...ad(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onComplete)); } ​ } ​ onComplete(): void { //初始化rank排行榜 var rank = new BigR...

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

740. 使用IDE打包图集工具出来的atlas,调用clearRes无法卸载资源 [ 58%]

...源 加载时时这样调用 Laya.loader.load("res/MainBlood.atlas", Laya.Handler.create(this, this.onAtlasLoaded), null, Laya.Loader.ATLAS); 卸载时这样 Laya.loader.clearRes("res/MainBlood.atlas");在Laya.Loader.loadedMap里查找是没有了,但是统计面板的CurMem降不下来,工程...

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