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

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

891. timer无法执行 [ 67%]

...Sprite3D = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(1)); this.scene1.addChild(ball);   ball.transform.position = new Laya.Vector3((Math.random() - 0.5) * 2, 10, 17); //添加刚体   ball.addComponent(Laya.PhysicsCollider); let ballrigid: Laya.Rigidbody3D = ball.addComponent(Laya.Rigi...

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

892. 如何通过代码控制prefab上面的时间轴动画animation? [ 67%]

...2-15 1 0 分享 微博 QZONE 微信 小声飞 赞同来自: 直接用这个scene 的实例  .show.play(0) 就行了 比如 var ss:soldieritem =new soldieritem(); ss.show.play(0);   可以添加 监听函数 监听动画播放结束 ss.show.on(Event.COMPLETE, this, onAnimComplete);     good luck...

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

893. 这个怎么办 laya.core.js:16463 Uncaught TypeError: Cannot read property '_tf' of null [ 67%]

...aught (in promise) DOMException: play() 运行报错 Uncaught Can not find scene:GameView.scene undefined 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of undefined错误 Uncaught TypeError: Cannot read property 'props' of undefine...

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

894. unity导出的ls和lh文件发布到微信小程序,用微信开发者工具打开报错 [ 67%]

...序之后,在微信开发者工具(v1.02.1802080)里报错,错误为"Scene: the .lh file root type must be Scene,please use other function to load this file."或"Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file." 跟了一下,发现__proto.onAsynLoa...

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

895. 自定义页面基类的时候,会自动添加Laya命名空间导致报错 [ 67%]

...lare module Laya{//在这个module里添加     class BaseView extends Scene{}//继承自Scene }里加上自己定义的页面,然后在编辑页面F9的Code导入类里写上引用和赋值   import BaseView from "../BaseView"; Laya.BaseView = BaseView 2019-09-06 0 1 分享 微博 QZONE 微...

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

896. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 67%]

...on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityPlugin 1.1.0导出了 ls 场景文件,在通过Laya.loader.create()预加载后。在3次Laya.Scene.load()后,最后一次 Laya.stage.destroyChildren();出现异常。(引擎是最新的...

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

897. Cannot read property 'call' of undefined [ 67%]

Cannot read property 'call' of undefined 当我新建GameScene并添加到舞台时,抛出了异常,求助该怎么解决   详细日志: "TypeError: Cannot read property 'call' of undefined    at Function.<anonymous> (file:///Users/moos/Company/Emerson-AirWar/EmersonGame/bin/libs/la...

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

898. 创建[HTMLDivElement]时遇到错误(手动实例一次本组件可定位错误) [ 67%]

...: 2.3.0.beta. 步骤: 1.新建2D示例项目 2.编辑模式下打开一scene或者prefab.层级面板中右击创建2D/HTMLDivElement 3.打开其它scene或者Prefab,再切回来第2步中的Prefab。即可见如图结果。   新手请教,该如何解决该问题?提示中的“手动实...

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

899. 为什么创建的脚本 变量在编辑模式赋值后 运行时为undfined [ 66%]

...编辑器工具? Ts 编辑提示error TS5023: Unknown option 'p' laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 循环依赖不能运行 Circular dependency: FairyGUI是一款专业的 UI编辑器(千万别点) 用了第三方socket类 ...

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

900. worker.js 使用问题 [ 66%]

....js:28751)     at RenderQueue.__proto._render (laya.d3.js:4070)     at Scene.__proto._renderScene (laya.d3.js:26518)     at Camera.__proto._renderCamera (laya.d3.js:36269)     at Scene.__proto.renderSubmit (laya.d3.js:26982) 2017-11-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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