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

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

1. mac下用FB打包发布测试页面,chrome浏览器看不到预期显示文字 [ 100%]

...le is not defined. /LayaAirTest/src/LayaAirTest.as (22):warning:Laya.stage.addChild This variable is not defined.   代码如下: package {     import laya.display.Text;     public class LayaAirTest     {         public function LayaAirTest()         {             Laya....

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

2. unity导出的3D动画模型,导入 laya环境报错: node._setParent is not a function [ 91%]

...Laya.loader.getRes("res/lk4.lh") as Laya.Sprite3D; //加载到场景 scene.addChild(role3D);  //此处报错 var ani = role3D.getComponent(Laya.Animator) as Laya.Animator; //播放攻击状态 ani.play(); chrome 调试:  addChild(node) {             if (!node || this.destroyed || node === ...

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

3. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 90%]

...r = new Sprite(); this.guideContainer.cacheAs = "bitmap"; Utils.GuideLayer.addChild(this.guideContainer); this.guideContainer.on(Laya.Event.CLICK, this, this.nextStep); this.mouseEnabled = false; var maskArea: Laya.Sprite = new Laya.Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, La...

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

4. 发射射线检测不到,物体有包围盒 [ 88%]

...ne3d             scene3d.name = 'good';             self.owner.addChild(scene3d);              var lv = scene3d.getChildByName("--- GAMEPLAY ---").getChildByName("Levels Parent");              // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.create(...

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

5. 按照范例写的碰撞一直检测不到 this.outHitInfo.distance [ 80%]

....scene = Laya.loader.getRes("h5/LayaScene_scene03/scene03.ls"); Laya.stage.addChild(this.scene); //设置场景在2D界面最后(最底层为第0层) Laya.stage.setChildIndex(this.scene, 0); //获取场景模型中的角色移动碰撞区模型 var moveArea = this.scene.getChildAt(0).getChildByN...

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

6. ui.TestPUI() 找不到 [ 74%]

...his,onLoaded)); function onLoaded(){ var efc =new ui.TestPUI(); Laya.stage.addChild(efc); } //new ui.TestPUI(); 这个东西找不到。我是按照官方文档动效模板来操作的。     2019-04-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

7. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 74%]

...tf;             debug_txt.text = "start...";             stage.addChild(debug_txt);               if (ExternalInterface.available)             {                 var params:String = ExternalInterface.call("getParams");                   if (params.indexOf("?"...

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

8. layaAirIDE 打包APK 后 真机运行报错 [ 66%]

...n.js:1: ReferenceError: createApes is not defined i=new RunGame;Laya.stage.addChild(i)}!function(){createApes()}(function(){function i(){this.BG_WIDT ReferenceError: createApes is not defined at BG_WIDTH (http://stand.alone.version/main.min.js:1:149) at eval (http://stand.alone.version/main.min.js:1...

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

9. laya.display.Node_API3.0 [ 54%]

...is3D numChildren parent scene timer url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents ...

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

10. laya.display.Sprite_API3.0 [ 52%]

...otY = 0;//设置 sprite 对象的垂直方法轴心点坐标。 Laya.stage.addChild(sprite);//将此 sprite 对象添加到显示列表。 sprite.on(Event.CLICK, this, onClickSprite);//给 sprite 对象添加点击事件侦听。 shape = new Sprite();//创建一个 Sprite 类的实例对象 sprite ...

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