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

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

591. Laya.PlatformClass.createClass undefined [ 62%]

....0 JS调用Java PlatformClass undefined 运行报错 Uncaught Can not find scene:GameView.scene undefined Uncaught TypeError: Cannot read property 'props' of undefined 今天打开微信工具出现错误Cannot read property 'USER_DATA_PATH' of undefined 发布到微信小游戏提示Cannot read pro...

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

592. lh文件内meshSprite添加阴影属性无效 [ 62%]

...滚屏,使得新添加的元素始终保持在最底部显示? laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 微信小程序—未找到入口 app.json 文件,或者文件读取失败,请检查后重新编译。 动画混合无效(...

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

593. LAYA2.0.0beata2使用场景编辑器无法通过var属性调用 [ 62%]

... 2.2.0beta4 发布微信小游戏,安卓设备加载场景黑屏 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined 3d场景单材质单模型Cu...

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

594. Laya3d加载Arena/Arena.ls报错 [ 62%]

...T_HEIGHT, false);             //添加3D场景             var scene:LayaScene = LayaScene.load("res/scene/Arena/Arena.ls");             Laya.stage.addChild(scene);             // Log.Info("Procedure::setup");             // this.InitGameManager();         } 2017-08...

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

595. 射线一直无法获取物体 [ 62%]

射线一直无法获取物体     添加物体:  var qb_pet = scene.addChild(Laya.Sprite3D.load("./test.lh"));     qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){         qb_pet.addComponent(Laya.SphereCollider);     });   设置射线:    Laya.timer.frameLoop(1, null,...

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

596. 物理碰撞器(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 62%]

...建了一个平面。如图1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))); //新建材质 var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(thi...

来源: Laya2.0_文档 发布时间: 20210714

597. LayaAir1.7.19.1 Beta预加载资源出问题 [ 62%]

...*949 • 2018-07-26 11:23 create是有问题吗,改成sprite3d.load或者Scene.load的话,项目改动会比较大 188*****949 • 2018-07-26 11:26 再说sprite3d.load调用的不是create? Laya_Aaron • 2018-07-26 11:27 Laya.loader.create(url, null, null, Sprite3D); 188*****949 • 2018-07-2...

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

598. loader.create加载.lh文件,如果文件不存在,也不会受到Event.Error事件 [ 62%]

...到舞台的3D模型不显示贴图 Animation如何加点击事件 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 微信小程序—未找到入口 app.json 文件,或者文件读取失败,请检查后重新编译。 关于遍历产生的s...

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

599. TypeError Uncaught TypeError: Object #<error> has no method '_addReference' [ 62%]

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

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

600. 开放数据域组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

...域节点: 我们也可以通过脚本创建开放数据域节点,在Scene2D节点上添加一个自定义组件脚本,脚本内容如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); }...

来源: Laya3.0_文档 发布时间: 20251010