大约有 1,036 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0068 秒)
Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya3.0_文档(73) Laya_社区(11) Laya2.0_示例(1) Laya_示例(1) Laya2.0_文档(1)
...({ output: { }, numWorkers:1,//Amount of workers to spawn. Defaults to the number of CPUs minus 1 sourcemap: false })*/ ] }).then(bundle => { return bundle.write({ file: workSpaceDir + '/bin/js/bundle.js', format: 'iife', name: 'laya', sourcemap: false }); }).catch(err=>{ console.log(err); }) ...
来源: Laya_社区 发布时间: 20200607
...:"left","center","right"。 */ fillText(text: string | WordText, x: number, y: number, font: string, color: string, textAlign: string): FillTextCmd { return this.addCmd(FillTextCmd.create(text, x, y, font, color, textAlign, 0, "")); } 这里重点介绍一下fillText中font属性与其它几...
来源: Laya3.0_文档 发布时间: 20251010
...aTest : Boolean 获取是否透明裁剪。 BaseMaterial alphaTestValue : Number 获取透明测试模式裁剪值。 BaseMaterial blend : int 获取混合方式。 ExtendTerrainMaterial blendDst : int 获取混合目标。 ExtendTerrainMaterial blendSrc : int 获取混合源。 ExtendTerr...
来源: Laya2.0_api 发布时间: 20190513
...现这一步在init的时候就完成了 * */ async updateAll(progress:(p:number)=>void); /** * 根据指定的zip文件更新本地缓存。 * 这个zip文件可以通过DCC插件的补丁生成工具来生成。 * * 这个会修改本地保存的root * @param zipfile 打补丁的zip文件,注...
来源: Laya3.0_文档 发布时间: 20251010
...urces/apes/monkey3.png"); Laya.loader.load(assets).then(()=>{ for(var i:number = 0, len: number = assets.length; i<len; ++i) { var asset:string = assets[i]; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调用清理方法 Laya.loader.clearRes(asset);...
来源: Laya3.0_文档 发布时间: 20251010
...窗口的物理宽度,考虑了设备像素比。 */ static get width(): number { Browser.__init__(); return ((ILaya.stage && ILaya.stage.canvasRotation) ? Browser.clientHeight : Browser.clientWidth) * Browser.pixelRatio; } /** * @en The physical height of the browser window, taking into a...
来源: Laya3.0_文档 发布时间: 20251010
...; // 打印解析结果 console.log("Received binary data:"); console.log("Number 1:", num1); console.log("Number 2:", num2); } catch (error) { console.error("Error parsing binary data:", error); } } else { console.log("Received non-binary message:", message); } } private onConnectError(): void { co...
来源: Laya3.0_文档 发布时间: 20251010
...og("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): void { //接近完成加载时,让显示进度比实际进度慢一点,这是为打开场景时的自动加载预留,尤其是要打开的场景资源多,并没有完全放到预加载中,还需要再自动...
来源: Laya3.0_文档 发布时间: 20241014
...og("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): void { //接近完成加载时,让显示进度比实际进度慢一点,这是为打开场景时的自动加载预留,尤其是要打开的场景资源多,并没有完全放到预加载中,还需要再自动...
来源: Laya3.0_文档 发布时间: 20251105
...{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number = 1; Laya.timer.frameLoop(10, this, () => { page += 1; //在定时器中让变量page每次自增1 this.txt.setVar("n", page); //使用setVar方法,让text文本中变量n的值动态改变 }); } } 效果如动图1...
来源: Laya3.0_文档 发布时间: 20251010