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

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

1. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 100%]

...新创建的图片,会报这个错:node._setParent is not a function this.imageBg = this.owner.getChildByName("image_bg"); console.log("this.imageBg==="+this.imageBg); for (let iColumns = 1; iColumns < this.intColumns; iColumns++) { this.arrLove[iColumns] = []; for (let iRows = 1; iRows < ...

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

2. 动画混合问题,Avatar动画混合报错. [ 99%]

....Sprite3D = null;  public animator:Laya.Animator = null;  public Init(){ this.sprite = this.owner as Laya.Sprite3D; this.animator = this.sprite.getComponent(Laya.Animator) as Laya.Animator; console.log("11"); }  public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya...

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

3. js飞机大战报错 请大神看看 [ 98%]

...ll.js文件 里面的组件名正确  layaUI.max.all.js:          this.pauseBtn=null;          this.hpLabel=null;          this.levelLabel=null;          this.scoreLabel=null;          this.infoLabel=null; GameInfo.js: var GameInfo = (function (_super) {   ...

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

4. 提示资源重复加载 [ 98%]

...ya.Sprite { private swimpoolani:Laya.Animation;  constructor() { super(); this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded));   } private onLoaded():void{   Laya.Animation.createFrames([swimpoorpath01,...

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

5. 【求助】关于Cannot read property 'visible' of undefined问题 [ 97%]

...wFoods():void{ foodSprite = new Sprite(); Laya.stage.addChild(foodSprite); this.index = 0; foodsList = new Array(); foodsList.push(new Food("菜品1", "1", 0)); foodsList.push(new Food("菜品2", "2", 1)); foodsList.push(new Food("菜品3", "3", 2)); foodsList.push(new Food("菜品4", "4", 3)); food...

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

6. U3D导出模型和动画,动画无法正常播放,预览也没有,载入场景资源提示:this._cacheAnimationNode没有Transfrom [ 97%]

...,动画无法正常播放,预览也没有,载入场景资源提示:this._cacheAnimationNode没有Transfrom 环境:Unity 5.6.7f1, Laya 2.1, 插件:最新, 所有项目和资源都在附件里:U3D项目和Laya项目 动画控制器没用OverrideAnimator Rig为:Generic Avatar:Create F...

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

7. U3D导出模型和动画,动画无法正常播放,预览也没有,载入场景资源提示:this._cacheAnimationNode没有Transfrom [ 97%]

...,动画无法正常播放,预览也没有,载入场景资源提示:this._cacheAnimationNode没有Transfrom 环境:Unity 5.6.7f1, Laya 2.1, 插件:最新, 所有项目和资源都在附件里:U3D项目和Laya项目 动画控制器没用OverrideAnimator Rig为:Generic Avatar:Create F...

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

8. 3D文本纹理demo问题 [ 97%]

...abox直接扫描右侧的二维码真机调试也是如此。  TypeError: this.cxt.fillText is not a function             this.cxt.fillText(text, this.cav.width / 2, this.cav.height);                      ^^                                                  ...

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

9. new Laya.Templet() 时,说这不是一个constructor [ 97%]

....0的“技术文档 → 动画进阶 → 示例代码”是这样写的!this.templet = new Laya.Templet();  2018-12-12 0 1 分享 微博 QZONE 微信 180*****237 赞同来自: 碰到同样问题了,我用的是LayaAir2.0。也是说: TypeError: Laya.Templet is not a constructor   能有详...

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

10. 摄像机的viewportPointToRay报错 [ 96%]

...射线初始化(必须初始化) //获取鼠标在屏幕空间位置  this.pointRay.x = Laya.MouseManager.instance.mouseX; this.pointRay.y = Laya.MouseManager.instance.mouseY; //详设计产生射线方法,通过2D坐标获取与屏幕垂直的一条射线 console.log( PanelMgr.mainCamera); P...

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