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

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

11. TS项目中怎么使用promise [ 45%]

...,在libs文件夹下面建立,extend.d.ts,加入下面的代码: interface Promise<T> {     then<TResult1, TResult2>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2&...

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

12. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 44%]

... @Time: 下午3:07 * @Desc: 这家伙很懒,什么都没留下…… **/ interface ITextFormat { /** * 背景色 */ bgColor?: string; /** * 是否加粗 */ bold?: number; /** * 文本框背景色 */ borderColor?: string; /** * 文本颜色 */ color?: string; /** * 字体 */ font?: string; /** * ...

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

13. laya.d3.core.material.RenderState_API3.0 [ 41%]

...ype alias Class Class with type parameter Constructor Property Enumeration Interface Static property

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

14. laya.media.SoundManager_API3.0 [ 40%]

... Class Class with type parameter Static property Static method Enumeration Interface

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

15. laya.d3.webxr.core.WebXRSessionManager_API3.0 [ 34%]

...ty Method Accessor Object literal Variable Function Type alias Enumeration Interface Inherited method Static property

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

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

...建的动画脚本,初始的代码如下: const { regClass } = Laya; interface AnimatorPlayScriptInfo { animator: Laya.Animator | Laya.Animator2D; layerindex: number; playState: Laya.AnimatorState | Laya.AnimatorState2D; } /** * 继承自AnimatorStateScript(动画状态脚本) * @author ... */ @...

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

17. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 15%]

...: c1.添加接口IMapUnit  /** 地图独立单元接口*/     export interface IMapUnit {         /**相对于地图X轴的坐标*/         relativeX: number;         /**相对于地图Y轴的坐标*/         relativeY: number;         /** 单元唯一id*/         id: an...

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