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

大约有 1,533 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0059 秒)

381. Laya.Pool.getItemByClass 找不到上次释放的对象 [ 72%]

...ar bg1:BackGround= Laya.Pool.getItemByClass("mybg",BackGround); Laya.stage.addChild(bg1); console.log("bg1->",bg1); //对象放回Pool里,并清除对象 Laya.Pool.recover("mybg",BackGround); bg1.removeSelf(); Laya.stage.removeChild(bg1); console.log("bg1->",bg1); //再次从Pool里获取对...

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

382. 导出插件导出模型不能用 [ 72%]

...aScene.lh"], Laya.Handler.create(this, onComplete)); ... var shelf = scene.addChild(Laya.Sprite3D.load("LayaScene_layaScene/layaScene.lh")); shelf.transform.position = new Laya.Vector3(-18.69, 1.1, 43.8);                 但是无法加载出来,也没报错 附件 : --> t1.rar 2018-04-12 ...

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

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

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

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

384. TimeLineUI不存在的问题 [ 72%]

...个UI实例 var plan = new ui.TimeLineUI(); //添加到舞台 Laya.stage.addChild(plan); //播放UI场景中的动画 plan.crashed.play(); }运行时发现ui变量不存在,打控制台打ui,Laya.ui,Laya.TimeLineUI均发现不存在,在文档中也搜到不TimeLineUI的文档,请问这个API...

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

385. HTMLDivElement如何设置文本区域内可以上下拖动的效果 [ 72%]

...Sprite(); sp.graphics.drawRect(50,50,300,300,null,"#0000FF",2); Laya.stage.addChild(sp); html=new HTMLDivElement(); html.innerHTML="<span>哈哈哈哈哈</span>"; Laya.stage.addChild(html); html.on(Event.MOUSE_DOWN,this,onHtmlDown); } private function onHtmlDown():void { html.startDrag(n...

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

386. 想做天空盒但是camera上没有sky这个属性 [ 72%]

...ya.stage.on(Event.RIGHT_MOUSE_DOWN, this, Destruction); scene = Main.box3D.addChild(new Scene3D()) as Scene3D; camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.rotate(new Vector3(10, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = BaseCamera...

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

387. camera.addComponent(CameraMoveScript)报错 [ 72%]

...剪) var camera = new Laya.Camera(0, 0.1, 100); // 加载到场景 scene.addChild(camera); // 移动摄像机位置 camera.transform.position = new Laya.Vector3(0, 5, 23); // 旋转摄像机角度 camera.transform.rotate(new Laya.Vector3(-17, 0, 0), false); // 设置摄像机视野范围(角度)...

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

388. 加上size设置后,精灵不能点击. [ 72%]

...Event.CLICK, this, () => { img.y -= 10; }) img.pos(100, 300) Laya.stage.addChild(img) } function createFlower() { var f = new Laya.Sprite(); var r = Math.random(); var s = r > 0.66 ? "img/flower1.jpg" : r > 0.33 ? "img/flower2.png" : "img/flower3.jpg" f.loadImage(s); f.on(Laya.Event.CLICK, ...

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

389. 关于设置动画轴心点问题 [ 72%]

....interval = 150; this.animation.play(0, true, ActionType.MOVE_RIGHT); this.addChild(this.animation);   由于动画不能设置锚点,我想设置动画图片宽度/2为轴心点pivotX坐标让图片居中,有什么方法可以自动获得到动画图片宽度吗? 我是想设置动画完全...

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

390. android旋转屏幕 半边黑屏 [ 72%]

... var te:Text = new Text(); te.fontSize = 50; te.text = "内容测试"; spr.addChild(te); Laya.stage.addChild(spr); Laya.stage.on(Event.CLICK, this, function():void { if (Laya.stage.screenMode == Stage.SCREEN_HORIZONTAL) { if (Browser.window.conchConfig) { Browser.window.conchConfig.setScreenOrientat...

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