大约有 53 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0028 秒)
....1 声明的概述 d.ts类型定义文件主要有以下几种语法: - `declare var\let\const ` 声明全局变量或常量 - `declare enum` 声明全局枚举类型 - `declare function` 声明全局函数 - `declare class` 声明全局类 - `declare module`声明全局模块 - `declare namespace...
来源: Laya2.0_文档 发布时间: 20210715
...,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
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
...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
...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_文档 发布时间: 20251010
... = Laya; @regClass() export default class DirectMove extends Laya.Script { declare owner: Laya.Sprite3D; private characterController: Laya.CharacterController; onAwake(): void { // 获取 角色控制器 组件并赋值给 characterController this.characterController = this.owner.getComponent(Laya.C...
来源: Laya3.0_文档 发布时间: 20251010
...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
...ex[ibIndex + 1] = 0; index[ibIndex + 2] = numSegments; // 顶点声明 var declaration = Laya.VertexMesh2D.getVertexDeclaration(["POSITION,UV"], false)[0]; let mesh2D = Laya.Mesh2D.createMesh2DByPrimitive([vertexs], [declaration], index, Laya.IndexFormat.UInt16, [{ length: index.length, start: 0 }])...
来源: Laya3.0_文档 发布时间: 20251120
...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
...3; indices[index++] = 1; indices[index++] = 2; indices[index++] = 3; const declaration = Laya.VertexMesh2D.getVertexDeclaration(["POSITION,UV"], false)[0]; const mesh2D = Laya.Mesh2D.createMesh2DByPrimitive([vertices], [declaration], indices, Laya.IndexFormat.UInt16, [{ length: indices.length, start...
来源: Laya3.0_文档 发布时间: 20251010