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

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

1661. 局部坐标转全局坐标结果与预期相差甚远 [ 66%]

...很远了 2018-12-19 0 4 分享 微博 QZONE 微信 LT 赞同来自: Laya.stage.addChild(this); Laya.timer.once(500,this,test); 转坐标放在后面加了个延时执行。。就没问题了。。应该是执行的时候组件还没有全部加进stage。。 2018-12-20 0 0 分享 微博 QZONE 微...

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

1662. 当屏幕尺寸,缩放模式,横竖屏 发生改变时会报错Uncaught TypeError: Cannot read property 'length' of null [ 66%]

...我也不知道哪里引起的,没法子给你们还原呢 主要在Laya.stage.destroyChildren();Laya.stage.addChild(new start())后,在切换横竖品就会报错 182*****369 • 2017-08-29 11:51 @182*****369:可以qq私聊嘛

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

1663. 发射射线检测不到,物体有包围盒 [ 66%]

...           }      onMouseDown() {         this.point.x = Laya.stage.mouseX;         this.point.y = Laya.stage.mouseX;         //产生射线         this.camera.viewportPointToRay(this.point,this._ray);         //拿到射线碰撞的物体         this.scene.physics...

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

1664. 技术文档svg不可以使用 [ 66%]

.../?nav=zh-js-3-4-1   //初始化引擎Laya.init(600, 400, Laya.WebGL);Laya.stage.bgColor = "#ffcccc";var data = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' +'<foreignObject width="100%" height="100%">' +'<div xmlns="http://www.w3.org/199...

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

1665. TypeError: Cannot read property '_byteLength' of null [ 66%]

....max.js:25487) at RenderContext.__proto.flush (GameLoader.max.js:11156) at Stage.__proto.render (GameLoader.max.js:33262) at Stage.__proto._loop (GameLoader.max.js:33188) at loop (GameLoader.max.js:10648) 2018-01-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

1666. 显示对象skew与scale同时设置时,APP与浏览器显示效果不一致 [ 66%]

....skewX = i * 6; spr.scaleY = 1 / Math.cos(Utils.toRadian(spr.skewX)); Laya.stage.addChild(spr); } for (i = 0; i < 31; i++ ) { var spr:Sprite = new Sprite(); spr.x = 30+i*17; spr.y = 500; spr.graphics.drawRect(-10, -40, 20, 80,colors[i%2]); spr.scaleX = i%2==0?-1:1; spr.skewX = i*6; Laya.stage.add...

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

1667. laya.display.Scene_API3.0 [ 66%]

...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scene3D s...

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

1668. 字距的调整问题 [ 66%]

...to.setScreenSize=function(screenWidth,screenHeight) 这是你调用了Laya.stage.screenMode=XXXXX之后 他就会在这里调用这个方法,然后适配屏幕。你会发现在某些 机型内 this.designWidth 、与 this.designHeight 是无法获取的。这就尴尬了。导致后面直接不...

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

1669. sk文件加载 [ 66%]

...           sk.pos(200,200)                 Laya.stage.addChild(sk);             }))                                        Laya.timer.once(2000,this,function(){                 sk.destroy(true)        ...

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

1670. laya.ui.Box_API3.0 [ 66%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scro...

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