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

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

1621. laya.media.VideoNode_API3.0 [ 67%]

...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 发布时间: 20231115

1622. Laya.loader.load 加载场景报错 [ 67%]

....create(this, function(){ this.scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent is not a function at Stage.__proto.addChild (laya.core.js:13290) at Main.<a...

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

1623. laya.ui.Dialog_API3.0 [ 67%]

...() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { dialog = new Dialog_I...

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

1624. laya.ui.UIComponent_API3.0 [ 67%]

...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

1625. WX小游戏声音_audio报错问题 [ 67%]

..._proto._updateScene (http://127.0.0.1:24812/game/code.js:77710:8)     at Stage.__proto.render (http://127.0.0.1:24812/game/code.js:18576:23)     at Stage.__proto._loop (http://127.0.0.1:24812/game/code.js:18522:8)   解决方案 :  找到音效停止的地方 , 注释 : this._audio= null; , ...

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

1626. 内存优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 67%]

... { //初始化引擎 Laya.init(1136, 640, Laya.WebGL); //等比缩放 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.frameLoop(1, this, this.onFrame); } onFrame(): void { //如果创建对象时间为100帧间隔后 if (this.cre...

来源: Laya2.0_文档 发布时间: 20210715

1627. 监听不到Laya.Event.RESIZE事件 [ 67%]

监听不到Laya.Event.RESIZE事件 init():void{ Laya.stage.on(Laya.Event.RESIZE,this,this.onStageChange); } protected onStageChange(event:Event):void { this.bg.y = 180; alert("11111111111111") var desWidth:Number; var desHeight:Number; //获取窗口显示区的宽度。 desWidth=window.innerWidth...

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

1628. 您好,我初始化的是竖屏,然后调用您说的这个方法切换横屏,界面匹配是不正确的,请问还要做其他处理吗? [ 67%]

...微博 QZONE 微信 ohkei - as3、as2、h5 赞同来自: 可以使用 Laya.stage.screenMode = Stage.SCREEN_VERTICAL; 2017-06-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zhejiushizhuce 相关问题 两个对象new了一个相同的...

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

1629. 飞机大战实例js版本 [ 67%]

飞机大战实例js版本 for(var i=Laya.stage.numChildren-1;i>0;i--) 遍历所有飞机,为什么i>0 ,这样不是取不到索引为0的飞机了吗?但预览效果为什么又是对的呢? 期待回复,谢谢。 2018-02-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

1630. Laya.Sprite loadImage 参数问题 [ 67%]

...始化舞台 Laya.init(1334,750,Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //原始位图 this.createImg(100,50); //红色滤镜 this.creteRedFilter(); //灰色滤镜 this.createGrayFilter(); } /**创建位图**/ private createImg(w:number,h:number):Laya.Sprite{ var Img:Lay...

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