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

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

1681. bug,ChainCollider.points第二次设置,会报错! [ 66%]

...2d示例项目中代码,改写的,点击2次场景就会报错。: onStageClick(e: Laya.Event): void { //停止事件冒泡,提高性能,当然也可以不要 e.stopPropagation(); //舞台被点击后,使用对象池创建子弹 let flyer: Laya.Sprite = Laya.Pool.getItemByCreateFun("bull...

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

1682. laya.device.media.Video_API3.0 [ 66%]

...entTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize duration ended error filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D loop mask mouseEnabled mouseX mouseY muted numChildren parent paused pivotX pivotY playbackRa...

来源: Laya3.0_api 发布时间: 20231102

1683. ui组件list数据源的疑问 [ 66%]

...游戏设计宽高。 Laya.init(750, 1334); //设置适配模式 // Laya.stage.scaleMode = "noborder"; var test=new TeUI(); var arr=; for(var i;i<6;i++){ arr.push({m_lable:"NO."+i}); } console.log(test.m_list) test.m_list.array=arr; Laya.stage.addChild(test); test.show(); })(); 但没有出来想...

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

1684. 官方3D空间转2D空间的demo问题:当3D模型走出视野外后,也投影到屏幕了 [ 66%]

..., camera.projectionViewMatrix, _outPos); layaMonkey2D.pos(_outPos.x / Laya.stage.clientScaleX, _outPos.y / Laya.stage.clientScaleY); } 2017-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来...

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

1685. TileMap有明显的bug [ 66%]

...sole.log("map create ..."); } var viewRect = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); var tMap = new Laya.TiledMap(); tMap.createMap("res/isometric_grass_and_water.json", viewRect, Laya.Handler.create(this, this._OnMapCreate), null, new Laya.Point(2 * 64, 2 * 32)); 附件 : -->...

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

1686. drawToCanvas截图在某些手机上会变暗 [ 66%]

...ge(); //给个ID方便添加CSS样式 snapshot.id = "snapshot"; //将整个STAGE画到图片里 snapshot.src = Laya.stage.drawToCanvas(1080,1920, 0, 0).getCanvas().toDataURL(); //图片显示在页面中 document.body.appendChild(snapshot); //隐藏游戏画布 document.getElementById("layaContainer...

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

1687. Laya3D场景加载问题 [ 66%]

...ya.Loader.getRes("gate/Conventional/Test.ls")         let scene = Laya.stage.addChild(test);         Laya.stage.setChildIndex(scene, 0);         //获取相机         var camera = scene.getChildByName("Main Camera");         console.log("test====================:" + Laya.version...

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

1688. 3D场景中背景无法透明,版本2.7.1 [ 66%]

... constructor() { super(); Config.isAlpha = true; Laya.init(480, 900); Laya.stage.bgColor = null; //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 1...

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

1689. 图片mask失效问题. [ 66%]

...rite();    //addChild(maskimg);    photoimg=new Sprite();    Laya.stage.addChild(photoimg);    photoimg.mask=maskimg;    photoimg.loadImage(imgn,0,0,500,500);    Laya.timer.once(1000, this, function():void{     maskimg.loadImage("http://img.diyphoto.cn/Mask/im ... ot%3B,0,0,500...

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

1690. 关于资源加载的问题 [ 66%]

...dArray, Handler.create(null, ()=>{ this.uiView = new SharkItOff(); Laya.stage.addChild(this.uiView); })); 先加载图集,图集加载完再new一个界面。但是界面里的图片都不显示 thekingreturn • 2018-03-27 20:42 [warn]Retry to load: games/game_13/image/shake_07.png [warn]Retry...

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