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

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

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

....1 声明的概述 d.ts类型定义文件主要有以下几种语法: - `declare var\let\const ` 声明全局变量或常量 - `declare enum` 声明全局枚举类型 - `declare function` 声明全局函数 - `declare class` 声明全局类 - `declare module`声明全局模块 - `declare namespace...

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

2. 构建好android studio项目后,debug出错 [ 93%]

...,debug出错 I/LayaBox: alert=undefined:5155: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode let runtime = json.props.runtime; ^^^ SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode ...

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

3. D.TS访问问题 [ 86%]

D.TS访问问题 declare module common_lib{ class ByteArray extends com.tengxun.utils.ByteArray{} class ParserUtil extends com.utlis.ParserUtil{} class MathR extends com.utlis.MathR{} } 我是仿照layaAir.d.ts来写的,这些代码上面还有ByteArray这些类的declare。奇怪的是: declar...

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

4. LayaEnv_API3.0 [ 81%]

...ies Static afterInit afterInit: () => void Defined in LayaEnv.ts:8 Type declaration (): void Returns void Static beforeInit beforeInit: (stageConfig: IStageConfig) => void Defined in LayaEnv.ts:7 Type declaration (stageConfig: IStageConfig): void Parameters stageConfig: IStageConfig Returns vo...

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

5. 开放数据域组件 · LayaAir3.0文档 · LAYABOX [ 74%]

...perty } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.OpenDataContextView }) public opendata: Laya.OpenDataContextView; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕...

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

6. 音频节点 · LayaAir3.0文档 · LAYABOX [ 72%]

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

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

7. laya.display.GraphicAnimation [ 63%]

...nimation display里面没有识别到这个需要怎么改动 附上源码 declare module laya.editorUI { /** * Graphics解析器 */ class GraphicParser extends laya.display.GraphicAnimation { protected _getTextureByUrl(url: string): string; static parseAnimationData(aniData: any): any; } } 2020-07-...

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

8. laya.gltf.glTFUtils_API3.0 [ 61%]

...Static Extensions Extensions: {} Defined in laya/gltf/glTFUtils.ts:87 Type declaration [name: string]: Handler Static Extras Extras: {} Defined in laya/gltf/glTFUtils.ts:92 保存 extra 处理函数对象 Type declaration [name: string]: {} [name: string]: Handler Methods Static RegisterExtra Regist...

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

9. 视频节点 · LayaAir3.0文档 · LAYABOX [ 60%]

...perty } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let video = new Laya.VideoNode; //添加...

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

10. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 59%]

...间会调用一次? 可以设置调用时间吗? --------------------- declare module laya.d3.component { /** * <code>Component3D</code> 类用于创建组件的父类。 */ class Component3D extends laya.events.EventDispatcher implements laya.d3.core.render.IUpdate { protected stati...

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