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

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

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_文档 发布时间: 20251010

2. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 82%]

...一种回调的方式。首先为列表定义一个回调函数,例如: function renderListItem(index:number, obj:GButton) { obj.title = "" + index; } 如果使用了对象池,意回调函数可能为同一个对象重复调用,所以在回调函数里注册事件侦听需要非常小心,避...

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

3. 开放数据域组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...ge方法中执行getFriendCloudStorage方法,修改后的方法如下: function init() { wx.onMessage((data) => { console.log("onMessage", data); if (data.type === "updateViewPort") { Layout.updateViewPort(data.box); draw(POWERRANK); } else if (data.type === 'close') { Layout.clear(); } /** *...

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

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

...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_文档 发布时间: 20251010

5. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...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_文档 发布时间: 20251010

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

...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

7. 3D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 28%]

...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_文档 发布时间: 20251010