大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0086 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
位图字体预加载 private function loadFont():void { var bitmapFont:BitmapFont = new BitmapFont(); bitmapFont.loadFont("../../../../res/bitmapFont/test.fnt",new Handler(this,onFontLoaded, [bitmapFont])); } priva...
来源: Laya_社区 发布时间: 20170629
... function downloadFile(url:String,onComplete:Handler,onError:Handler=null):void{ if(window.conch) { var folder:String=window.conch.getCachePath()+"/download/"; if (!window.fs_exists(folder)) { window.fs_mkdir(folder); } var fileName:String = url.replace("http","").replace(/:/g,"").replace(new RegExp...
来源: Laya_社区 发布时间: 20190731
...有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.checkbox.pos(300, 300); // this.checkbox.selected = true; this.checkbox.label = "多选框"; this.checkbox.labelBold = true; this.checkbox.labelSize = 30; this.checkbox.labelColors = "#0100ff, #16fa0e, #ff0000"; /...
来源: Laya3.0_文档 发布时间: 20251010
..." Defined in laya/display/cmd/TransformCmd.ts:9 Methods recover recover(): void Defined in laya/display/cmd/TransformCmd.ts:36 回收到对象池 Returns void Globals "laya/display/cmd/TransformCmd" TransformCmd matrix pivotX pivotY ID recover Legend Object literal Variable Function Type alias Class...
来源: Laya3.0_api 发布时间: 20231115
...g, fileType:String = "",callBack:Handler = null,encoding:String = "ascii"):void ``` #### 3、清除缓存文件 由于百度小游戏的缓存上限是50M物理空间,所以无论自动管理缓存还是手动管理缓存,达到上限后都需要清理缓存。每次清理的缓存大小默认...
来源: Laya2.0_文档 发布时间: 20210714
...th); return ret; } //粒子特效初始化 private Init(file_path:string): void { if (this._isInited) { return; } this._filePath = file_path; console.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = partic...
来源: Laya3.0_文档 发布时间: 20251010
...th); return ret; } //粒子特效初始化 private Init(file_path:string): void { if (this._isInited) { return; } this._filePath = file_path; console.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = partic...
来源: Laya3.0_文档 发布时间: 20250104
...节点和组件均已创建完毕,此方法只执行一次 onEnable(): void { // 添加2D线渲染器组件 this.line2DRender = this.owner.addComponent(Laya.Line2DRender); // 设置线的宽度 this.line2DRender.lineWidth = 5; } // 鼠标按下时开始绘制 onMouseDown(evt: Laya.Event): void { t...
来源: Laya3.0_文档 发布时间: 20251010
...r3 = new Vector3(0, 0.001, 0); private function startRound():void { Laya.timer.frameLoop(1, this, function():void{ camare.transform.rotate(_rotateC); }); } 这个并不是绕物体旋转...
来源: Laya_社区 发布时间: 20170607
...ate" Defined in laya/display/cmd/RotateCmd.ts:8 Methods recover recover(): void Defined in laya/display/cmd/RotateCmd.ts:35 回收到对象池 Returns void Globals "laya/display/cmd/RotateCmd" RotateCmd angle pivotX pivotY ID recover Legend Object literal Variable Function Type alias Class Class wit...
来源: Laya3.0_api 发布时间: 20231115