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

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

1091. animation在自定义box节点下不显示 [ 54%]

... 在stage上面也能显示吗? Laya_Aaron • 2018-07-20 10:35 在哪里addchild的。 135*****576 • 2018-07-20 10:40 在主循环里面添加的 Laya_Aaron • 2018-07-20 10:41 @135*****576:加给谁了,那个父节点有加进舞台吗 135*****576 • 2018-07-20 10:43 加给自己创建的...

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

1092. 求问sprite放大后,graphics绘制的图像位置偏移 [ 54%]

...#fff333"); //位置正确 sprite.scale(scaleRatio, scaleRatio); Laya.stage.addChild(sprite); console.log(sprite.width); console.log(sprite.height); 比如我在一个sprite的中心画一个圆,用scale放大后,圆偏离中心。 必须在原位置减去位置除以缩放比才能达到想要...

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

1093. [LayaAir3]3D场景里面鼠标感应区域 3.2.1跟3.3不同 [ 54%]

...e.texture.sourceHeight = Laya.stage.height; //添加2D精灵, this.owner.addChild(this.spRole); this.spRole.pos(0, 0); this.spRole.size(Laya.stage.width, Laya.stage.height); }); 2025-01-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无...

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

1094. 动态加载的 animation第二次加载的时候不显示 [ 54%]

...60+(i-1)*120; item.y=y; item.size(80,80); item.name=aniname; this.doworkui.addChild(item);   2017-11-06 0 0 分享 微博 QZONE 微信 ysshao 赞同来自: 实际上这些animation是存在的,我可以通过play播放的,但是就是看不叫! 2017-11-06 0 0 分享 微博 QZONE 微信 ysshao 赞...

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

1095. layaAirIDE 打包APK 后 真机运行报错 [ 54%]

...n.js:1: ReferenceError: createApes is not defined i=new RunGame;Laya.stage.addChild(i)}!function(){createApes()}(function(){function i(){this.BG_WIDT ReferenceError: createApes is not defined at BG_WIDTH (http://stand.alone.version/main.min.js:1:149) at eval (http://stand.alone.version/main.min.js:1...

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

1096. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 54%]

...; this.playerHB.txtName.text = "搞个毛啊"; // this.playerVO.name; this.addChild(this.playerHB); } private aaa():void { this.playerHB.x += this.bb; console.log( this.playerHB.x); if(this.playerHB.x > 1000) { this.bb *= -1; } if(this.playerHB.x < -100) { this.bb *= -1; } } 控制一直6像...

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

1097. Laya.Sprite loadImage 参数问题 [ 54%]

...ite{ var Img:Laya.Sprite = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); //加载显示图片 Img.loadImage("res/img/monkey1.png", w, h);//报错 return Img; } /**创建红色滤镜位图**/ private creteRedFilter():void{ //颜色滤镜矩阵,红色 var colorMatrix:any = [ 1, 0, 0...

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

1098. 使用以下代码打开超大分辨率图片 WebGL 模式无法正常显示 [ 54%]

...dImage("comp/hug.png"); //读取大分辨率图片 无法显示 Laya.stage.addChild(sp); } } new GameMain();//问题描述 客户要求使用LAYA引擎打开一张图片 可以随意拖动缩放, 由于图太大, 选择使用WebGL模式打开图片 以上代码当图片分辨率不太大时 正常...

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

1099. 多场景跳转遇到当前场景不能remove的问题 [ 54%]

...ame = new StartgameUI(); window.sceneStartgame= sceneStartgame; Laya.stage.addChild(sceneStartgame); 5个场景,4个跳转,前2个正常,后2个不正常,一样的代码。 因为remove跟add不在同一个js,所以remove时用的全局变量。 问题:通常是这样实现的吗?我...

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

1100. js中使用sharedMesh报错 [ 54%]

...原型 warehouse1 = Laya.MeshSprite3D.load("model/warehouse/1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); warehouse1.transform.translate(new Laya.Vector3(-25,0,0),false); warehouse1.name = "仓库1"; var warehouseCollider1 = warehouse1.addC...

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