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

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

661. 关于as版的Animation.createFrames()不能工作? [ 49%]

关于as版的Animation.createFrames()不能工作? 请看我的代码,不知道为什么createFrames()生成的缓冲图集就是不能工作: package { import laya.display.Animation; import laya.display.Sprite; import laya.display.Stage; import laya.utils.Handler; import laya.net.Loader; im...

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

662. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 49%]

...行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```typescript //创建一个Animation实例 var tl:Laya.Animation = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine...

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

663. 官方DynamicBatchTest照做为什么动态合不了批? [ 49%]

...Script);   Laya.Texture2D.load("res/threeDimen/layabox.png", Laya.Handler.create(this, function (tex) { var radius = new Laya.Vector3(0, 0, 1); var radMatrix = new Laya.Matrix4x4(); var circleCount = 50;   var boxMesh = Laya.PrimitiveMesh.createBox(0.02, 0.02, 0.02); var boxMat = new Laya.BlinnPho...

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

664. 【简单跑酷--JS版】---Lv.6 终篇 [ 49%]

....display.Sprite(); this.rightBg.graphics.drawTexture(laya.resource.Texture.createFromTexture(this.bgTexture,32*29,0,32,96), 0, 0, 32, 96); this.rightBg.width = 32; this.addChild(this.rightBg); } switch(type){ case 1: this.rightBg.visible = false; this.bg.graphics.drawTexture(this.bgTexture, 0, 0, 96...

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

665. 请问2.0中js怎么加天空盒子或穹顶,官网例子运行报错。 [ 49%]

...(); camera.sky=skyDome; Laya.BaseMaterial.load("res/env.png", Laya.Handler.create(null, function(mat) { console.log(camera); //执行到了这里,显示了camera中的sky存在 //camera.sky = mat; //就算这里赋值也没用 })) ========执行的结果就是不报错也没反应 console.log(came...

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

666. textinput(type=password)手机打开华为安全键盘后,无法关闭(官网的例子) [ 49%]

..../../res/ui/input (4).png"];         Laya.loader.load(skins, Handler.create(this, onLoadComplete)); //加载资源。     })();     function onLoadComplete()     {         for (var i = 0; i < skins.length; ++i)         {             var input = createInput(skin...

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

667. 模拟器分辨率问题 [ 49%]

...变化了:   printScreenInfo("aaa"); Laya.loader.load(resArr, Handler.create(this, this.onResLoaded, [this.mainuiView, winName, zOrder])); printScreenInfo("bbb"); private onResLoaded(parent:Laya.Node, winName:string, zOrder:number):void {     printScreenInfo("ccc");     this.doOpen(parent, wi...

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

668. 设置自动竖屏后 打包APP 安装到手机后显示黑屏 不设置自动竖屏又正常 [ 49%]

...)             Laya.loader.load("res/atlas/gameUI.atlas",Handler.create(this,this.gameStart));                                   } 2018-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 内容相关的链接 提交 4 ...

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

669. 调用动画结束on方法,报错this.zombieAnimator.on is not a function [ 49%]

...ya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void { scene.addChild(zombie); this.zombieAnimator = (zombie.getChildAt(0) as Laya.Sprite3D).getComponent(Laya.Animator) as Laya.Animator;//获取Animator动画组件 this.zombieAni...

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

670. TiledMap制作横板地图 报错 [ 49%]

...报错。 以下是导入脚本。 this.map=new Laya.TiledMap(); this.map.createMap("res/map/map.json",new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height), Laya.Handler.create(this,this.onLoaded));报错的地方为:laya.tiledmap.js第178行: var tImageArray=relativePath.split("/");...

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