大约有 3,091 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0115 秒)
Laya_社区(2361) Laya2.0_文档(237) Laya_示例(147) Laya2.0_示例(117) Laya3.0_api(70) Laya2.0_api(64) laya_api(59) Laya3.0_文档(36)
... (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
...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
...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
... 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
... 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
...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
..._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
...比。*/ 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
...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
...52, 480, Laya.WebGL); //FPS Laya.Stat.show(0,0); //设置适配模式 Laya.stage.scaleMode = "exactfit"; //设置剧中对齐 Laya.stage.alignH = "center"; //设置横屏 Laya.stage.screenMode = "horizontal"; 打开浏览器(哦这里要说一下 因为浏览器有本地加载文件策略 具...
来源: Laya_社区 发布时间: 20160722