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

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

341. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 73%]

...链接 提交 1 个回复 Veni vidi vici 赞同来自: import GameConfig from "../../../GameConfig"; import { SingleBase } from "../../../lib/base/SingleBase"; import DdzFarmersAni from "./DdzFarmersAni";  export default class DdzLandlordAni extends SingleBase{   private mFactory: Laya.Templet = n...

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

342. mac 开放域 发布失败 [ 72%]

...Underlying error: Error processing argument at index 0, conversion failure from null Error: Could not call remote function ''. Check that the function signature is correct. Underlying error: Error processing argument at index 0, conversion failure from null     at callFunction (/Applications/LayaA...

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

343. 3D场景跳转到2D场景问题 [ 71%]

...l.GameSceneB);   } }结束界面跳转到3D场景 import {VictorySceneUI} from '../ui/layaMaxUI' import GameScene from './GameScene'; export default class VictoryScene extends VictorySceneUI {  constructor() { super();   } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Eve...

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

344. 分享:关于自定义场景继承的实现 [ 71%]

...在场景设置下找到Code导入类,增加如下内容:import {base} from "../script/base/BaseScene"; import BaseScene=base.BaseScene;注意:这里的base为命名空间,由于IDE导出时只能识别命名空间的导入方式(也就是import xxx = xx.xx的形式),如果没识别到...

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

345. 3D射线碰撞总是会穿墙,求解决方法 [ 71%]

...有 this.capsuleCollider = new Laya.CapsuleColliderShape(0.25, 0.85); this.from = new Laya.Vector3(this.player.tran*orm.position.x, this.player.tran*orm.position.y + 1.5, this.player.tran*orm.position.z + 2); this.to = new Laya.Vector3(this.player.tran*orm.position.x, this.player.tran*orm.position.y...

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

346. LayaAirIDE编译不能识别tsconfig.json的paths配置 [ 71%]

...代码时省略前导相对路径。 直接写成 import setTextureColor from 'setTextureColor';多方便。   但是这种写法在 LayaAirIDE 中会编译失败,需要改成这种写法才行: import setTextureColor from '../modules/setTextureColor';   tsconfig 中 paths 的配置没问...

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

347. 学会编写d.ts声明文件(TypeScript-IDE篇(TS)-代码模式基础) [ 71%]

...例如下面的两个TS源码为: ```typescript // src/index.ts export * from './bar'; export default function foo() { return 'foo'; } // src/bar/index.ts export function bar() { return 'bar'; } ``` 生成两个对应的d.ts声名文件为: ```typescript // lib/index.d.ts export * from './bar'; ...

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

348. 关于场景拖入预设,导入路径有问题 [ 70%]

...查看B类的.generated.ts文件发现,导入的代码为: import {A} from "./A"; 报错了,虽然不影响实际使用,但实际应该为 import A from "./A"; 望修正。     已上传,说明在TestB.ts,9行 附件 : --> LayaProject1.zip 2023-03-16 添加评论 免费帖 --> 分享 ...

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

349. laya.d3.core.FloatKeyframe_API3.0 [ 69%]

... in laya/d3/core/FloatKeyframe.ts:15 外权重 time time: number Inherited from Keyframe.time Defined in laya/d3/core/Keyframe.ts:19 时间。 value value: number Defined in laya/d3/core/FloatKeyframe.ts:11 帧数据 weightedMode weightedMode: number = WeightedMode.None Defined in laya/d3/core/Float...

来源: Laya3.0_api 发布时间: 20231115

350. 分享关于TS在1.x和2.x模块差异 [ 69%]

...问,不需要也没办法使用`require("./xxx")`或者`import * as xxx from "./xxx"`,可以通过使用别名访问:`import a = x.y;` 2.x 有模块(module)的概念,但是不能使用命名空间(namespace), 虽然都能编译通过,但是namespace的代码不会被编译进去bundl...

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