大约有 2,991 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0104 秒)
Laya_社区(2265) Laya2.0_文档(235) Laya_示例(147) Laya2.0_示例(117) Laya3.0_api(70) Laya2.0_api(64) laya_api(59) Laya3.0_文档(34)
...nventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube") as Laya.Sprite3D; //添加组件(脚本) var _script = cube.addComponent(SceneScript) as SceneScript; //label用于显示 var _lab = new Laya.L...
来源: Laya2.0_文档 发布时间: 20210715
...xtWidth customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea href innerHTML is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrol...
来源: Laya3.0_api 发布时间: 20231102
...效。 Laya.init(GameConfig.DeviceW, GameConfig.DeviceH, Laya.WebGL); Laya.stage.bgColor = "none";//背景透明 } else { Laya.init(GameConfig.DeviceW, GameConfig.DeviceH); Laya.stage.bgColor = null;//背景透明 } 万山飞雪 • 2018-09-13 18:34 有人解决吗? 手机上无效
来源: Laya_社区 发布时间: 20180519
...s count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea index is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY playing rotation scaleX scaleY scene scroll...
来源: Laya3.0_api 发布时间: 20231115
关于适配iphone X的问题 代码里设置的适配是Laya.stage.scaleMode = laya.display.Stage.SCALE_EXACTFIT; 全屏拉伸的 但是用iphone X测试的时候,上面那个刘海会被挡住。。想做到上下切边的适配iphone X要怎么做?有提供方案吗? 2018-02-28 添加...
来源: Laya_社区 发布时间: 20180228
...a.MovieClip(); this.swfAni.load(strSWF,true,strImg); this.swfAni.x = (Laya.stage.width -1900) / 2; this.swfAni.y = (Laya.stage.height - 1200) / 2; this.swfAni.zOrder = 3; this.swfAni.loop = false; this.swfAni.play(0,false); this.swfAni.visible = true; this.swfAni.on(laya.events.Event.COMPLETE, this,...
来源: Laya_社区 发布时间: 20170505
... true ,接收鼠标点击 onAwake() { this.isClick = false; //对舞台stage添加点击事件(这里由于有scene的缘故,点击空白处返回的对象是scene) Laya.stage.on(Laya.Event.CLICK,this,function(e) { if(e.target.name == "scene的名字") { this.isClick = true; //如果点击...
来源: Laya_社区 发布时间: 20210122
...log = new NormalDialog(context); this.normalDialog.popup(true, true); Laya.stage.addChild(this.normalDialog); } } // 弹窗代码 class NormalDialog extends ui.normalDialogUI { constructor( text: string ) { super(); // 设置label文字 this.context.text = text; this.btn_close.on(Laya.E...
来源: Laya_社区 发布时间: 20181216
...现在,我已经将index.html的方向设置成竖向,下一步是确认我stage是竖向的: Laya.stage.screenMode = "vertical"; 解决完方向问题我们再来解决JS问题 首先我们先release: 点击确定后,刷新一下,就可以看见有一个release的文件夹,如图: 我们...
来源: Laya_社区 发布时间: 20170624
显示地图时会把地图外的图像显示在屏幕外 Laya.stage.scaleMode = Stage.SCALE_FIXED_AUTO; 没完全适配的情况下,本来屏幕是显示黑是的,但是像下图,把屏幕外的地图也显示出来了。 要怎么弄才不显示屏幕外的地图? 附件 : --> 2017-10-30 ...
来源: Laya_社区 发布时间: 20171030