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

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

5571. 动画状态机 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...了解每个部分。 首先,动画状态机 Animator 可以允许我们定义动画状态,以及动画状态之间的切换条件,来驱动3D对象播放不同的动画,表现出不同的行为。那么动画状态机有下面几部分构成: 动画状态机组件 Animator Component :...

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

5572. 官方技术文档中的问题 [ 50%]

... 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0);  //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material = new Laya.StandardMaterial(); material.diffuseTexture = La...

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

5573. 场景管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...秒。 例如要打开一个新场景,使用加载页面,那么就先定义一个脚本代码,加入可能拖入loading场景的Laya.Prefab属性,代码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @pr...

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

5574. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 50%]

...象 继承此 Sprite Laya.class(RunGame,"RunGame", laya.display.Sprite); //定义RunGame的prototype var _proto = RunGame.prototype; //初始化 _proto.init = function(){ console.log('RunGame Init'); //背景 this.bg = new Background(); this.addChild(this.bg); //地板 this.mapFloor = new MapFloor()...

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

5575. Cannot read property 'call' of undefined [ 50%]

...运行报错 Uncaught Can not find scene:GameView.scene undefined 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of undefined错误 Cannot read property 'displayObject' of null Laya2.1.0 JS调用Java PlatformClass undefined [TMA][ER...

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

5576. layaair2-cmd安装报错 [ 50%]

...件 layanative2 打包android平台 报错 btCollisionObject undefined 自定义场景导出layaMaxUI.ts有前缀导致报错 IDE通过.ui自动生成的ui代码报错 微信小游戏编译报错 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? laya2 发布微信开放...

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

5577. 3D场景中背景无法透明,版本2.7.1 [ 50%]

...t.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 0)); //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D...

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

5578. Uncaught Can not find class EffectAnimation undefined [ 50%]

...() 真机环境找不到window---cant find variable: window stack 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of undefined错误 Laya2.1.0 JS调用Java PlatformClass undefined Uncaught TypeError: Cannot read property 'props' of u...

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

5579. Unity导出的光照贴图带有Alpha但Shader中没有使用,Laya是否在加载PNG的时候有预乘Alpha? [ 50%]

...体动画无效 unity到导出场景加载时抛异常,不知所措 自定义场景导出layaMaxUI.ts有前缀导致报错 问题状态 最新活动: 2018-02-25 15:22 浏览: 1422 关注: 2 人

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

5580. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 50%]

...关联 * 相比脚本方式,继承式页面,可以直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果 * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如...

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