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

大约有 6 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0034 秒)

1. Windows扩展 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...env env, jsvm_value exp) { //注册新的函数 jsvm_value fn; jsvm_create_function(env, "testAdd", SIZE_MAX, jsAdd, nullptr, &fn); jsvm_set_named_property(env, exp, "nativeAdd", fn); jsvm_value fn1; jsvm_create_function(env, "testStr", SIZE_MAX, jsStr, nullptr, &fn1); jsvm_set_named_propert...

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

2. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 91%]

...res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }...

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

3. 缓动 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...ation(1000).to("x", 600).ease(myEase); //开发者自定义的缓动函数 function myEase(t: number, b: number, c: number, d: number) : number { //... } 3.5 串行和并行 本节主要介绍两个方法:chain()和parallel()。 chain():当开发者想要顺序执行多个缓动效果时,就...

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

4. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...ath = ""; } Pool.getInstance().ClearGroup("Particle3D@" + root_path, this, function(particle_3d:Particle3D) { particle_3d.Clean(); }); } } 5.2 自定义对象池类 export class Pool { private _poolDic:{[key: string]: any;} = {}; private InPoolSign: string = "__InPool"; constructor() { } private sta...

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

5. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 53%]

...ath = ""; } Pool.getInstance().ClearGroup("Particle3D@" + root_path, this, function(particle_3d:Particle3D) { particle_3d.Clean(); }); } } 5.2 自定义对象池类 export class Pool { private _poolDic:{[key: string]: any;} = {}; private InPoolSign: string = "__InPool"; constructor() { } private sta...

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

6. 3D物理编辑 · LayaAir3.3 · 引擎文档 · LAYABOX [ 26%]

...aya.Mesh.load("res/threeDimen/Physics/table.lm", Laya.Handler.create(this, function(mesh:Laya.Mesh) { //读取桌子模型节点对象,添加到3D场景节点下, var table: Sprite3D = this.scene.addChild(new Laya.Sprite3D(res)); //给桌子节点对象添加刚体碰撞器 var rigidBody = table...

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