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

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

1511. laya.physics.PhysicsDebugDraw_API3.0 [ 69%]

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

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

1512. 切换后台时,引擎如何判断是否停止定时器? [ 69%]

...      constructor() {         super();          this.stage.on(Laya.Event.FOCUS, this, this.onFocus);         this.stage.on(Laya.Event.BLUR, this, this.onBlur);         Laya.timer.frameLoop(1,this,this.onFrameLoop);     }      private onFrameLoop():void{...

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

1513. 物体的x,y输出不一致的问题 [ 69%]

...我在Player中输出的位置信息不一致: var player :Player = Laya.stage.getChildAt(i) as Player; console.log(player.x); 附:在Player中输出x的信息 一直为0 但是在Monster类中输出Player的x的数据一直是497,0,494,0,491,0,488,0.......这样的 2018-08-28 添...

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

1514. [LayaAir3]使用videoNode播放视频没有控制器 [ 69%]

...ideoNode播放视频没有控制器  let video = new Laya.VideoNode; Laya.stage.addChild(video); video.size(600,480); video.options.controls = true; video.options.objectFit = "contain";播放后并没有出现进度条、播放、暂停等组件。 适配选contain、fill都不起作用。 2025-08-...

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

1515. laya.ui.List_API3.0 [ 69%]

....init(640, 800, "false");//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoad...

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

1516. dialog的锁定效果,popup设置无效,还是可以点击到下面的界面 [ 69%]

...ar xgpwd =new pwdDialog(); xgpwd.popup(true); Laya.Dialog.lock(true); Laya.stage.addChild(xgpwd);   文档api 说popup模式 还要lock设置 我都一一的试了都没用,这是怎么回事   2017-11-30 0 0 分享 微博 QZONE 微信 ymsdandan 赞同来自: 你设置这个了么closeDialogOnSi...

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

1517. 微信小游戏好友排行模糊 [ 69%]

...题是错误的设置了缩放比例导致。 错误的地方为: Laya.stage.scale(0.5, 0.5); 请删除掉这行。   正确的设置开放域的方式为: 1、要在开放域的项目里,设置正确的设计尺寸。需要注意的是stage大小要与sharedCavas大小一致。 2、要在主...

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

1518. 续飞机大战 [ 69%]

...(){ // 初始化引擎,设置了游戏的宽高 Laya.init(480,852); Laya.stage.bgColor="#EEFFCC"; var bg = new BackGround(); Laya.stage.addChild(bg); } return Game; }()); var gameInstance = new Game();BackGround.jsvar BackGround = (function (_super) { function BackGround() { BackGround.__super.cal...

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

1519. drawToTexture截大图有问题,会丢失 [ 69%]

...,1600,"#ff0000");         this.nsp.mouseThrough=true;         Laya.stage.addChild(this.nsp);         this.nsp.on(Laya.Event.CLICK,this,this.drawImg,null)     }     drawImg(e:Event=null):void{         var copySpr:Laya.Sprite=new Laya.Sprite();         copySpr.texture=this.nsp....

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

1520. laya.display.Animation [ 69%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node filters : Array滤镜集合。可以设置多个滤镜组合。Sprite  frames : Array 当前动画的帧图像数组。本类中,每个帧图像是...

来源: laya_api 发布时间: 20170929