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

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

311. Spine3D渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 39%]

....spine3D = this.owner.getComponent(Laya.Spine3DRenderer); let currentSkin: string = this.spine3D.skinName; // 记录当前皮肤状态 //播放停止后执行逻辑 this.owner.on(Laya.Event.STOPPED, this, () => { // 通过三元运算符切换皮肤名称 currentSkin = currentSkin === "full-skins...

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

312. UI-RefreshList [ 37%]

...录 this.redHotStatus.splice(showRedHot, 1); // console.log("11111", JSON.stringify(this.redHotStatus)); } this.refreshList.refresh(); } onClickDel(index){ console.log("((((((((((((del------------"); //按索引删除 this.refreshList.array.splice(index, 1); //清除已纪录的打开状态 // this....

来源: Laya2.0_示例 发布时间: 20260303

313. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 34%]

...化引擎 Laya.init(600, 400); Laya.stage.bgColor = "#ffcccc"; var data: string = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); } } new LayaUISample; ``` 通过dat...

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

314. WebSocket通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 32%]

...d(msg: any): void { console.log("接收到消息:"); if (typeof msg === "string") { console.log("文本数据:", msg); } else { console.log("接收到非字符串数据", msg); } // 清除输入缓存,避免残留数据 this.socket.input.clear(); } /** 连接关闭回调 */ private onSocketClo...

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

315. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 31%]

...始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp:Sprite = new Sprite(); sp.loadImage(data,0,0,200,200); Laya.stage.addChild(sp); } } } ``` 通过data来当做url传递给loadImage...

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

316. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 30%]

...esh: Mesh, texture: Texture2D, minHeight: number, maxHeight: number, name: string = null): MeshTerrainSprite3D { var meshTerrainSprite3D: MeshTerrainSprite3D = new MeshTerrainSprite3D(mesh, null, name); meshTerrainSprite3D._initCreateFromMeshHeightMap(texture, minHeight, maxHeight); return meshTerra...

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

317. 和原生Dom交互 · LayaAir3.4 · 引擎文档 · LAYABOX [ 26%]

...显示这个img。我们新建个项目。代码如下所示: var data: string = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:4...

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