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

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

61. 微信小游戏的50M物理缓存管理(TypeScript-小游戏适配文档-微信小游戏) [ 87%]

...载目标文件并缓存到本地。 ```javascript /** * 下载文件 * @param fileUrl 文件地址(全路径) * @param fileType 文件类型(image、text、json、xml、arraybuffer、sound、atlas、font) * @param callBack 文件加载回调,回调内容[errorCode码(0成功,1失败,2加载进度) ...

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

62. 【分享】圆形进度条上图片跟随进度并旋转角度 [ 87%]

...e(this, this.onLoading, null, false));      /** * 加载资源进度 * @param percent 百分比 */ private onLoading(percent: number): void { this.view.box_mark.graphics.drawPie(216, 216, 216, -90, (-90 + Math.floor(percent * 360)), "#ff0000"); //画进度 let point: { x: number, y: number, hudu:...

来源: Laya_社区 发布时间: 20190629

63. 程序蓝图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 87%]

...name: "TestBluePrint", canInherited: true, extends: "Script", construct: { params: [ { "name": "testParams", "type": "string" } ] } }) export class TestBluePrint extends Laya.Script { constructor(testParams: string) { super(); } } (图12-1) 3.2 属性 在变量前使用装饰器的标识@bpPrope...

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

64. 微信小游戏渲染开放域卡顿处理 [ 86%]

... }         /**          * 刷新开放域界面          * @param param 携带参数通知开放域          */         public refresh(param?: any): void {             var self = this;             var width = self.width;             var height = self.height; ...

来源: Laya_社区 发布时间: 20181114

65. laya.components.Animation2DEvent_API3.0 [ 86%]

...archy Animation2DEvent Index Constructors constructor Properties eventName params time Constructors constructor new Animation2DEvent(): Animation2DEvent Defined in laya/components/Animation2DEvent.ts:10 创建一个 Animation2DEvent 实例。 Returns Animation2DEvent Properties eventName eventName: ...

来源: Laya3.0_api 发布时间: 20231115

66. Laya.MathUtil.getRotation接口说明注释错误 [ 86%]

...获取指定的两个点组成的线段的弧度值。          * @param x0 点一的 X 轴坐标值。          * @param y0 点一的 Y 轴坐标值。          * @param x1 点二的 X 轴坐标值。          * @param y1 点二的 Y 轴坐标值。          ...

来源: Laya_社区 发布时间: 20191022

67. 颜色滤镜 差值变化 [ 86%]

...Tool(); } return ColorTool.instance; }  /** * 添加颜色改变对象 * @param target */ public addColorTarget(target: Laya.Sprite): void { this.targets.push(target); }  /** * 设置颜色改变值 * @param color */ public targetsChangeColor(color: number) { this._targetsLastValue = this._targets...

来源: Laya_社区 发布时间: 20180930

68. List表单renderHandler问题 [ 86%]

...果不需要自动回收,设置once参数为false。          * @param   caller 执行域(this)。          * @param   method 回调方法。          * @param   args 携带的参数。          * @param   once 是否只执行一次,如果为true,回...

来源: Laya_社区 发布时间: 20180704

69. Ease.elasticOut如何自定义参数,直接设置的话会变成number [ 86%]

... * 其中的运动由按照指数方式衰减的正弦波来定义。 * @param t 指定当前时间,介于 0 和持续时间之间(包括二者)。 * @param b 指定动画属性的初始值。 * @param c 指定动画属性的更改总计。 * @param d 指定运动的持续时间。 * @param a ...

来源: Laya_社区 发布时间: 20180104

70. Laya.Quaternion.lerp和Laya.Quaternion.rotationLookAt问题! [ 86%]

...拉角生成四元数(顺序为Yaw、Pitch、Roll)          * @param   yaw yaw值          * @param   pitch pitch值          * @param   roll roll值          * @param   out 输出四元数          */         public static function cre...

来源: Laya_社区 发布时间: 20190308