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

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

91. 射线检测报错,outHitInfo.sprite3D=null; [ 78%]

... Laya.Camera; private scene: Laya.Scene;  public _load(owner : any):void{ this.scene = owner; this.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); }  public _start(state:Laya.RenderState):void{ this.ray = new...

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

92. laya as发布玩一玩到Xcode工程,编译报错 [ 78%]

...,然后编译报错 level=1, code=-1, info1=Execute JS Error![TypeError: this.ctx.transform is not a function. (In 'this.ctx.transform(a,b,c,d,tx,ty)', 'this.ctx.transform' is an instance of RectTransform)]: line = 6253, column = 21, sourceURL = /var/containers/Bundle/Application/2DE21169-C5AF-439...

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

93. Cannot read property 'toDefault' of undefined报错是什么原因 [ 78%]

...cene", Laya.Scene); function MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.skyBox = new Laya.SkyBox(); this.camera.sky = this.skyBox; this.skyBox.textureCube = Lay...

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

94. 3D文本纹理demo问题 [ 78%]

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

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

95. LayaNative 预览在Android底下报错 ConchShader is not defined [ 78%]

...霸王 赞同来自: z295738188 ReferenceError: ConchShader is not defined this._conchShader=/*__JS__*/new ConchShader();   at new ShaderCompile3D(http:// ... /bin/libs/laya3d.js...) 2018-05-23 1 0 分享 微博 QZONE 微信 z295738188 赞同来自: 我也遇到这个问题 2018-05-24 0 0 分享 ...

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

96. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 78%]

...= Laya.SpineTemplet; class SpineBinary {     constructor() {         this.aniPath = "res/powerup-pro.skel";         this.index = -1;         // Laya.init(Browser.width, Browser.height, WebGL);         // Laya.stage.scaleMode = Stage.SCALE_NOSCALE;         // Laya.stage.bgColor ...

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

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

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

98. Laya2.0做排行榜时发布到微信中报错 [ 78%]

...同样的问题,t.addReference报错,改了laya.core.js之后又报了this.bitmap._getSource() is not a function,改了getsource之后不报错了,但是开放域的东西都没绘制出来,game.json里面设置了开放域的,并且使用laya微信开放域组件能够正常显示,使用2...

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

99. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 78%]

...res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报错 Main.js:61 Uncaught ReferenceError: ui is no...

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

100. AS转换JS运行报错 [ 78%]

...键回调函数中调用DoFunc报错 我现在得到结论 KeyHandler中的this不能指代__proto对象 要使this指代过去,我记得参数中要加个参数才对,麻烦看下是不是转换问题,还是有这种写法   附件 : --> 2017-01-23 添加评论 免费帖 --> 分享 微博 QZ...

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