大约有 796 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0103 秒)
Laya_社区(684) Laya2.0_文档(48) Laya3.0_文档(33) Laya3.0_api(15) Laya2.0_api(8) laya_api(7) Laya_示例(1)
...结构: src/myOpenDataContext 按照我建立的这个项目,那目录路径就是:/wxdemo/demo-main/src/myOpenDataContext 5.主域这边代码: import Label = Laya.Label; import Handler = Laya.Handler; import Loader = Laya.Loader; class GameBootstrap{ public constructor(){ ...
来源: Laya_社区 发布时间: 20180529
...uot;opendatacontext" }); } else { throw "获取图集的磁盘url路径不存在!"; } } static sendSinglePicToOpenDataContext(url) { var tempTextureUrl = Laya.URL.formatURL(url); var fileObj = MiniFileMgr.getFileInfo(tempTextureUrl); if (fileObj) { var fileMd5Name = fileObj.md5; var...
来源: Laya_社区 发布时间: 20200103
...布脚本(脚本基本照抄自 layaair2-cmd,只修改了一些脚本路径的计算) 在项目根目录下创建目录 dev-tools a)、创建并编写脚本 tools-compile.js#!/usr/bin/env node const program = require('commander'); const { fork } = require('child_process'); const path = requ...
来源: Laya_社区 发布时间: 20201223
...cleSystem>= []; constructor() { super(); } //通过传入粒子特效的路径,创建一个粒子特效,从对象池里拿一个 static Create(path: string): Particle3D { var ret:Particle3D = Pool.getInstance().getItemByClass("Particle3D@" + path, Particle3D); ret.Init(path); return ret; } //...
来源: Laya3.0_文档 发布时间: 20251010
...cleSystem>= []; constructor() { super(); } //通过传入粒子特效的路径,创建一个粒子特效,从对象池里拿一个 static Create(path: string): Particle3D { var ret:Particle3D = Pool.getInstance().getItemByClass("Particle3D@" + path, Particle3D); ret.Init(path); return ret; } //...
来源: Laya3.0_文档 发布时间: 20250104
...如果代码没有引入的话,它也不会在load的时候报无效的路径的 Vongola • 2018-07-04 18:06 @Prajna:模拟器下可以用,在微信里和你报一样的错误 Prajna • 2018-07-04 18:26 @Vongola:~~是吧
来源: Laya_社区 发布时间: 20180704
...载直接创建动画 Parameters path:String — 要加载的动画文件路径 complete:Handler (default = null) — 加载完成的回调函数 aniMode:int (default = 0) — 与Skeleton.init的aniMode作用一致 paused()method public function paused():void 暂停动画的播放 play()method...
来源: laya_api 发布时间: 20170929
...载直接创建动画 Parameters path:String — 要加载的动画文件路径 complete:Handler (default = null) — 加载完成的回调函数 aniMode:int (default = 0) — 与Skeleton.init的aniMode作用一致 paused()method public function paused():void 暂停动画的播放 play()method...
来源: Laya2.0_api 发布时间: 20190513
...(): void { this.sprite.loadImage("atlas/comp/image.png"); //纹理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.sprite.y = Laya.stage.height/2; this.sprite.size(51...
来源: Laya3.0_文档 发布时间: 20251010
...lse; } /** * 播放BGM * @param url BGM资源路径或ID * @param isBreak 若地址相同时是否打断当前bgm播放 * @returns */ public playBGM(url: string | number, isBreak: boolean = true): void { if (!url) { ...
来源: Laya_社区 发布时间: 20250930