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

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

541. OPPO小游戏分包指南(TypeScript-小游戏适配文档-OPPO小游戏) [ 38%]

... success 回调来通知加载完成。示例代码如下: ```javascript const loadTaskA = qg.loadSubpackage({ name: 'sub1Name', success: function (data) { console.info('加载分包 sub1Name 成功') }, fail: function (err) { console.info('加载分包 sub1Name 失败', err) } } ) ``` 加载成...

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

542. Laya.Pool用法 [ 38%]

...ublic static PROTO_STRING_VALUE: string = "proto_ParamsProto";         constructor() {             // Pool.recover(ProtoPool.PROTO_HEAD, new com.bigao.h5.proto.Head());             // Pool.recover(ProtoPool.PROTO_BINARY_REQUEST, new com.bigao.h5.proto.BinaryRequest());          ...

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

543. 抖音小游戏 · LayaAir3.4 · 引擎文档 · LAYABOX [ 38%]

...用资源,方法与web发布略有不同,加载代码示例如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激...

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

544. 1.0 骨骼drawcall优化猥琐方法 [ 37%]

...= vb;                          o._startIdx = pos * CONST3D2D.BYTES_PIDX;             o._numEle = 0;             var blendType:int = context._nBlendType;             o._blendFn = context._targets ? BlendMode.targetFns[blendType] : BlendMode....

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

545. 引用外部脚本的方式 · LayaAir3.4 · 引擎文档 · LAYABOX [ 37%]

...,示例代码如下: import { AStarFinder } from "astar-typescript"; const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private aStarInstance: AStarFinder; onStart() { console.log("Game start"); // 0表示通路,1表示障碍 let myMatrix = [ [0, 0, 0, 0, ...

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

546. laya.d3.math.Matrix4x4 [ 37%]

...l Classes | Index | Frames No Frames Matrix4x4Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Matrix4x4InheritanceMatrix4x4 ObjectImplements laya.d3.core.IClone Matrix4x4 类用于创建4x4矩阵。 Public Properties PropertyDefined By  elements : Float32Array矩阵...

来源: Laya2.0_api 发布时间: 20190513

547. 支付宝小游戏 · LayaAir3.4 · 引擎文档 · LAYABOX [ 37%]

...用资源,方法与web发布略有不同,加载代码示例如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } // 组件被激活后执行,此时所有节点和...

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

548. 滤镜-颜色滤镜 [ 37%]

...ePath: string = "../../res/apes/monkey2.png"; private apeTexture: Texture; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

来源: Laya_示例 发布时间: 20260303

549. 自动图集配置 · LayaAir3.4 · 引擎文档 · LAYABOX [ 36%]

...代码访问时,必须先加载 .atlas 文件。 示例代码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { declare owner: Laya.Image; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { //需要先加载图集...

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

550. [BUG]刚体约束问题,移动后约束混乱! [ 36%]

...private newScene:Laya.Scene3D;   private boxA: Laya.MeshSprite3D;   constructor() {     super();     Laya3D.init(0, 0);     Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;     Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;     Laya.Stat.show();     this.newScene ...

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