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

大约有 1,326 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0059 秒)

201. 3D模型无法正显示和播放动作 [ 78%]

...是我导出问题,还是使用问题           var hero = sphere.addChild(Laya.Sprite3D.load("./res/Xinzhaoyun/Zhaoyun_skin.lh"));          var ani = hero.addComponent(Laya.SkinAnimations);         ani.templet = Laya.AnimationTemplet.load("./res/Xinzhaoyun/Zhaoyun_standfight.lsani")...

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

202. 关于Laya.loader.load和getRes的问题 [ 78%]

...var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); })); 这可以正常运行,但是我把外面的 load 函数去掉,将第二个参数中的函数内容独立后却不能显示图片:var t:Texture = Laya.loader.getRes("../../../../res/...

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

203. 3D支持图集吗? [ 78%]

...sp = new Laya.Sprite(); sp.graphics.drawTexture(texture, 0, 0); Laya.stage.addChild(sp);   //3D加载图集 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(64, 64))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); var materia...

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

204. LayaAir3D 坐标系统与矩阵变换 [ 78%]

... Stat.show(); //给舞台添加laya3d场景 var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; //初始化照相机 var camera:Camera = scene.addChild(new Camera()) as Camera; camera.transform.position = new Vector3(0, 3, 3); camera.transform.rotate(new Vector3( -45, 0, 0), true, false); c...

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

205. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 78%]

... //imgLove.pos(iRows*this._x + 120 , iColumns*this._y + 320); this.imageBg.addChild(imgLove); } }TypeError: node._setParent is not a function preload.js:55     at Image.__proto.addChild (file:///E:/laya/myLaya/myZootopia/bin/libs/laya.core.js:20925:9)     at LoveControl.createLoveArr (file:///E:...

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

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

...官网例子运行报错。 //=======天空盒子 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加3D场景 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100)));//添加照相机 camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0...

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

207. 没有预加载的图片怎么获取width和height ? [ 78%]

...    older.loadImage("../laya/assets/comp/image.png");     Laya.stage.addChild(older);     console.log(older.scaleX,older.scaleY,older.rotation,older.x,older.y, older.width,older.height,older.getBounds().width,older.getBounds().height);      older.scale(2,2);     console.log(older.s...

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

208. 为什么pannel里显示两张同样的图片显示不出来,只能显示一张 [ 78%]

...ize(720, 1136); this.panel.vScrollBarSkin = "comp/vscroll.png"; Laya.stage.addChild(this.panel); var img:Laya.Image = new Laya.Image(); img.skin = "res/GameBG2.jpg" this.panel.addChild(img) var img1:Laya.Image = new Laya.Image(); img1.y = 1136; img1.skin = "res/GameBG2.jpg"; this.panel.addChild(img1...

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

209. laya中js 如何实现Sprite类继承 [ 78%]

...te(); this.RoleMap.size(Laya.stage.width, Laya.stage.height/2); Laya.stage.addChild(this.RoleMap); this.RoleMap.addChild(this.Role); this.Role.pivot(16,24);// 图片32x48 this.Role.pos(100, 200);   Role.js基础代码: var Role = ( function ( _super ) { function Role () { Role._super.call(this); ...

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

210. 调用图集中小图片失败 [ 78%]

...败 var sp:Sprite=new Sprite(); sp.loadImage("img/btnbg2.png"); Laya.stage.addChild(sp); var sp1:Sprite=new Sprite(); sp1.loadImage("system/twoP.png"); Laya.stage.addChild(sp1); img图集中的小图可以调用到,system的图集调用不到,在浏览器的资源列表中加载中加载到了图集...

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