大约有 595 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0054 秒)
Laya_社区(200) Laya2.0_示例(114) Laya3.0_文档(99) Laya2.0_api(91) laya_api(48) Laya_示例(24) Laya2.0_文档(16) Laya3.0_api(3)
... success 回调来通知加载完成。示例代码如下: ```javascript const loadTaskA = qg.loadSubpackage({ name: 'sub1Name', success: function (data) { console.info('加载分包 sub1Name 成功') }, fail: function (err) { console.info('加载分包 sub1Name 失败', err) } } ) ``` 加载成...
来源: Laya2.0_文档 发布时间: 20210715
...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
...用资源,方法与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
...= 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
...,示例代码如下: 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
...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
...用资源,方法与web发布略有不同,加载代码示例如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } // 组件被激活后执行,此时所有节点和...
来源: Laya3.0_文档 发布时间: 20251010
...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
...代码访问时,必须先加载 .atlas 文件。 示例代码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { declare owner: Laya.Image; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { //需要先加载图集...
来源: Laya3.0_文档 发布时间: 20251128
...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