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

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

1731. BackGround.super(this);这个报错 Cannot read property 'call' of undefined [ 65%]

... (function shouye(){ Laya.init(100,300); this.bgimg=new BackGround(); Laya.stage.addChild(this.bgimg); })(); return shouye; })(); var BackGround = (function (_super) { function BackGround() { BackGround.super(this); this.bg=new Laya.sprite; this.bg.loaImage("war/beijing.png"); this.addchild(this.b...

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

1732. 怎么获取手机相册内容 [ 65%]

...ssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置; var file:Object = Browser.document.createElement("input"); //设置file的样式 file.style="filt...

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

1733. laya.ui.WXOpenDataViewer_API3.0 [ 65%]

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

1734. LayaAir引擎AS3与Flash原生AS3的开发差异(ActionScript-简介篇(AS3)-LayaAir引擎简介) [ 65%]

... sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,200,'#FFFF00'); Laya.stage.addChild(sp); var mask:Sprite=new Sprite(); mask.graphics.drawCircle(0,0,50,'#FF0000'); mask.pos(sp.x+100,sp.y+100) sp.mask=mask; ``` ### 2.2 动态遮罩 **原生as3支持,但是不被LayaAir引擎支持的示例:*...

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

1735. LayaAir引擎AS3与Flash原生AS3的开发差异(ActionScript-简介篇(AS3)-LayaAir引擎简介) [ 65%]

... sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,200,'#FFFF00'); Laya.stage.addChild(sp); var mask:Sprite=new Sprite(); mask.graphics.drawCircle(0,0,50,'#FF0000'); mask.pos(sp.x+100,sp.y+100) sp.mask=mask; ``` ### 2.2 动态遮罩 **原生as3支持,但是不被LayaAir引擎支持的示例:*...

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

1736. laya.display.Input_API3.0 [ 65%]

...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize editable filters focus font fontSize globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea html htmlParseOptions is3D italic leading lines mask maxChars maxScrollX maxScrollY maxWid...

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

1737. destroy节点后,报错 [ 64%]

..._update (file:///D:/minigame/throwball/bin/libs/laya.d3.js:34104:15)   at Stage.__proto.render (file:///D:/minigame/throwball/bin/libs/laya.core.js:31069:23)   at Stage.__proto._loop (file:///D:/minigame/throwball/bin/libs/laya.core.js:31018:8)   at loop (file:///D:/minigame/throwball/bin/libs/la...

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

1738. 浏览器接口 · LayaAir3.4 · 引擎文档 · LAYABOX [ 64%]

...比。*/ static get width(): number { Browser.__init__(); return ((ILaya.stage && ILaya.stage.canvasRotation) ? Browser.clientHeight : Browser.clientWidth) * Browser.pixelRatio; } /** 浏览器窗口物理高度。考虑了设备像素比。*/ static get height(): number { Browser.__init__()...

来源: Laya3.0_文档 发布时间: 20251010

1739. 3d物理引擎有碰撞不触发onCollisionEnter [ 64%]

...aya.d3.js:15042)     at Scene3D._update (libs/laya.d3.js:18977)     at Stage.render (libs/laya.core.js:16632)     at Stage._loop (libs/laya.core.js:16572)     at loop (libs/laya.core.js:10515) 如果问题二没有出现,请把Test.ts第40行的Laya.timer.loop的第一个参数500改成10...

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

1740. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 64%]

...52, 480, Laya.WebGL); //FPS Laya.Stat.show(0,0); //设置适配模式 Laya.stage.scaleMode = "exactfit"; //设置剧中对齐 Laya.stage.alignH = "center"; //设置横屏 Laya.stage.screenMode = "horizontal";   打开浏览器(哦这里要说一下 因为浏览器有本地加载文件策略 具...

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