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

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

1611. 构建3d示例的Android工程,生成nativie的,导入android Studio中运行,报错 [ 61%]

...你们构建出的android的nativie的代码中 mProxy = new RuntimeProxy(this); mPlugin = new GameEngine(this);  mPlugin.game_plugin_set_runtime_proxy(mProxy);  mPlugin.game_plugin_set_option("localize","false");  mPlugin.game_plugin_set_option("gameUrl", "");  mPlugin.game_plugin_init(3);  Vi...

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

1612. laya.ui.List_API3.0 [ 60%]

...source/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():void { var arr:Array = [];//创建一个数组,用于存贮列表的数据信息。 for (var i:int = 0; i < 20; i++) { arr.push({label: "item" + i}); } var list...

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

1613. [LayaAir3]动态添加2d物理引擎shape无效 [ 60%]

...shape无效   rig.shapes = [shape];   sp.addComponentInstance(rig);   this.Sprite.parent.addChild(sp);   //设置ide中Sprite节点的shape有效   this.Sprite.getComponent(Laya.RigidBody).shapes = [shape]; 附件 : --> LayaProject_(2).zip 2025-09-12 3 条评论 免费帖 --> 分享 微博 QZON...

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

1614. Laya.Scene.open 中的complete参数如何取得场景实例? [ 60%]

...        var handler : laya.utils.Handler = laya.utils.Handler.create(this, this.onGetStartScene);         GameConfig.startScene && Laya.Scene.open(GameConfig.startScene, true, null, handler ); // open的返回值是void,所以不能通过open的返回值拿到     }     o...

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

1615. 富文本:LayaAir下 HtmlDivElement的使用汇总 [ 60%]

...box.com/'>LayaBox欢迎你的加入!</span>"; div.on(Event.LINK,this,onLink); Laya.stage.addChild(div); } private function onLink(data:*):void { // TODO Auto Generated method stub Browser.window.location.href=data; }5、实现html页面跳转 示例如下: var iHtml:HTMLIframeElement=ne...

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

1616. 2.3.0beta vivo 多点触控报错. [ 60%]

..." has in SingletonList.";                 return;      this._add(element);      element._setIndexInList(this.length++);      } 2019-10-21 0 2 分享 微博 QZONE 微信 155*****359 赞同来自: 请问vivo的调试怎么捕获这个异常信息呀? 2019-11-23 0 0 分享...

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

1617. 为什么laya2.0加载不了.lm文件? [ 60%]

.../Assets/BakerHouse/Models/Baker_house-Baker_house.lm"],Laya.Handler.create(this, this.completeHandler)); completeHandler(): void { Laya.stage.addChild(Laya.loader.getRes("LayaScene_Scene/Scene.ls")); Laya.stage.addChild(Laya.loader.getRes("LayaScene_Scene/Assets/BakerHouse/Models/Baker_house-Baker_h...

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

1618. 加载UI页面之后,怎么调用UI页面的图片,给图片加点击事件 [ 60%]

... 的 var 属性设置一个 名字 比如 img   img.on(Event.MOUSE_DOWN, this, 回调方法); 2018-01-11 1 5 分享 微博 QZONE 微信 qian 赞同来自: 你可以参考这个示例https://ldc.layabox.com/doc/?nav=zh-as-4-1-0 2018-01-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

1619. 关于纹理的显示问题 [ 60%]

...sprite.graphics.drawTexture(texture, 0, 0,texture.width,texture.height); this.addChild(sprite);  }      LayaUISample.max.js:19468 Uncaught TypeError: Cannot read property 'width' of undefined     at Texture.moveUV (LayaUISample.max.js:19468)     at GraphicsGL.__proto.drawTexture (LayaUISam...

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

1620. Panel滚动条滑块位于最下方 [ 60%]

...l:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img:Image=new Image(); img.skin="bg2.png"; panel=new Panel(); panel.vScrollBarSkin="comp/vscroll.png"; panel.width=300; panel.height=300; Laya.stage.addChild(panel); panel.a...

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