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

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

1551. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 69%]

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

1552. laya.html.dom.HTMLIframeElement_API3.0 [ 69%]

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

1553. 设置背景透明,在电脑上没有问题,但是在手机上(如微信qq浏览器)是无效的 [ 69%]

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

1554. laya.ani.swf.MovieClip_API3.0 [ 69%]

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

1555. 关于适配iphone X的问题 [ 69%]

关于适配iphone X的问题 代码里设置的适配是Laya.stage.scaleMode = laya.display.Stage.SCALE_EXACTFIT; 全屏拉伸的   但是用iphone X测试的时候,上面那个刘海会被挡住。。想做到上下切边的适配iphone X要怎么做?有提供方案吗? 2018-02-28 添加...

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

1556. Laya.MovieClip() new的时候崩溃了,在线等,很急!!!! [ 69%]

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

1557. Button和下面的3D物体重叠,点击button,3D物体会同时响应自己的鼠标脚本 [ 69%]

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

1558. dialog的popup方法不会关闭其他弹窗 [ 69%]

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

1559. [图文]解决JS打包和打包后APP黑屏的问题 [ 69%]

...现在,我已经将index.html的方向设置成竖向,下一步是确认我stage是竖向的:   Laya.stage.screenMode = "vertical"; 解决完方向问题我们再来解决JS问题 首先我们先release:   点击确定后,刷新一下,就可以看见有一个release的文件夹,如图:   我们...

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

1560. 显示地图时会把地图外的图像显示在屏幕外 [ 69%]

显示地图时会把地图外的图像显示在屏幕外 Laya.stage.scaleMode = Stage.SCALE_FIXED_AUTO; 没完全适配的情况下,本来屏幕是显示黑是的,但是像下图,把屏幕外的地图也显示出来了。 要怎么弄才不显示屏幕外的地图? 附件 : --> 2017-10-30 ...

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