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

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

391. Cannot read property 'rayCast' of undefined [ 45%]

....8, -1); this.directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); Laya.Sprite3D.load("res/scene/LayaScene_webgl_sky/Conventional/webgl_sky.lh", Laya.Handler.create(this, this.onLoadFinish)); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); } onLoadFinish(layaMonkey){ this.layaMonkey=t...

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

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

...st(this.ray, this._outHitInfo, Number.MAX_VALUE, 10); if (this._outHitInfo.sprite3D.name === "tlj"){ isRotate = !isRotate; } // this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, state); // //绘出射线 // this.phasorSpriter3D.line(this.ray.origin.x, this.ray.origin.y, this.ray.origin.z, 1.0, 0.0...

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

393. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 44%]

...路径三、地形处理3.1 高度图3.2 网格地形3D精灵 MeshTerrainSprite3D3.3 更新世界矩阵3.4 得到整数网格索引3.5 得到世界坐标系下真实坐标3.6 初始化目标点四、角色移动五、最终代码3D寻路 一、概述 本篇将讲解3D场景寻路问题,...

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

394. 加载 unity3D导入旧版蒙皮动画时出现错误 [ 44%]

...使用官网旧版例子中代码   addSkinComponent(spirit3D: Laya.Sprite3D): void {         if (spirit3D instanceof Laya.MeshSprite3D) {             var meshSprite3D: Laya.MeshSprite3D = spirit3D as Laya.MeshSprite3D;             var skinAni: Laya.SkinAnimati...

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

395. 模型与动画导入使用 · LayaAir3.0文档 · LAYABOX [ 43%]

...景内 Laya.loader.load("girl/girl.lh").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //获得Animator this._animator = girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if...

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

396. 3D场景销毁后,仍有引用存在,内存中场景及引用其对象无法销毁 [ 43%]

...l/Effect_zhujue_attack.lh");             let tarItem = Laya.Sprite3D.instantiate(item);             this.scene.addChild(tarItem);             tarItem.transform.position = new Laya.Vector3(0, 0, 0);             item.destroy();          ...

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

397. 官方文档里位图字体制作与使用JS 跑不通 以及 文档几个问题 [ 43%]

...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale TS项目使用matter.js库无智能提示 微信小游戏:HTMLDivElement使用 使用3D时候,Property 'getComponentByType' does not exist on...

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

398. 【分享】通过命令行调用compile.js编译,不使用laya-cmd [ 40%]

...运行时 找不到类定义!这是为什么? 已上传 Demo 附件 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 分享:自定义事件派发与侦听(A页面派发 B页面侦听) 请问在layaIDE里,怎么调用微信小程序API 微信小游戏:HTML...

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

399. 输入文本组件 · LayaAir3.0文档 · LAYABOX [ 38%]

...export class TextInputControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake():...

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

400. 3D中如何限制角色行走区域? [ 37%]

...ture2D, priority:1, params:[true]}        场景中初始化MeshTerrainSprite3D:               //通过场景中子父级节点寻找可行走区域网格模型               var meshSprite3D:MeshSprite3D = sceneSprite3d.getChildAt(0).getChildAt(0).getChildAt(13) as MeshSprite3D;...

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