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

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

1221. 导出到微信小游戏资源加载失败回调不执行 [ 51%]

...tic function downFiles(fileUrl:String, encoding:String = "ascii", callBack:Handler = null, readyUrl:String = "",isSaveFile:Boolean = false,fileType:String = "",isAutoClear:Boolean =true):void { var downloadTask:* = wxdown({url: fileUrl, success: function(data:Object):void { if (data.statusCode === 2...

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

1222. 加载时间轴动画报错 [ 51%]

...ni = new Laya.Animation(); this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe));   function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); }   运行时报 TypeError:Cannot read property '_create' of null     at Animat...

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

1223. laya3.0中jszip使用异常 [ 51%]

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

1224. 分享:如何使用IDE创建的动画.ani文件进行显示! [ 51%]

...载动画需要用到的资源 Laya.loader.load("res/atlas/fly.json", Laya.Handler.create(this, onAssetLoaded), null, Laya.Loader.ATLAS); function onAssetLoaded() { var ani=new Laya.Animation();//创建animation实例 ani.loadAnimation('Ani.ani');//加载IDE制作的动画 Laya.stage.addChild(ani);/...

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

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

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

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

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

1227. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 51%]

...te(); Laya.stage.addChild(logo); logo.loadImage("res/atlas/test.png", Laya.Handler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.width/2-logo.width/2,Laya.stage.height/2-logo.height/2); })...

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

1228. laya2.0版本支持MeshColliderShape吗 [ 51%]

...iderShape.<anonymous> (laya.d3.js:26828)     at App.js:35     at Handler.__proto.runWith (laya.core.js:1143)     at ResInfo.onLoaded (laya.core.js:14787)     at EventHandler.__proto.runWith (laya.core.js:1143)     at ResInfo.__proto.event (laya.core.js:899)     at LoaderManager.__p...

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

1229. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 51%]

..."res/threeDimen/scene/LayaScene_AnimationEvent/Conventional/layaScene.ls", Handler.create(this, function(scene:Scene3D):void { Laya.stage.addChild(scene) as Scene3D; //获取cube对象 var cube:Sprite3D = scene.getChildByName("Cube"); //添加组件(脚本) var _script:SceneScript = cube.addComponen...

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

1230. 原生js传图片給laya的sprite,怎么设置其等比缩小? [ 51%]

...加载后的图片还是100%显示,$pic.loadImage(_pic, 14, 192, 0, 0, Handler.create(this, function(){     $pic.height = 246;     $pic.scaleX = $pic.scaleY;     trace("$pic.width:" + $pic.width); })); 请问:我用原生上传了一张图片,然后传給layaAir,这个图片的scale是...

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