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

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

541. 引用外部脚本的方式 · LayaAir3.3 · 引擎文档 · 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

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

543. 支付宝小游戏 · LayaAir3.3 · 引擎文档 · 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

544. 滤镜-颜色滤镜 [ 36%]

...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_示例 发布时间: 20260106

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

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

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

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

547. laya.utils.Byte [ 36%]

...| All Classes | Index | Frames No Frames ByteProperties | Methods | Constants Packagelaya.utilsClasspublic class ByteInheritanceByte Object Byte 类提供用于优化读取、写入以及处理二进制数据的方法和属性。 Byte 类适用于需要在字节层访问数据的高级开发...

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

548. 压缩纹理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

...路径即可。以给Image组件添加皮肤为例,示例代码如下: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onAwake(): void { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压...

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

549. laya.d3.math.Matrix3x3 [ 36%]

...l Classes | Index | Frames No Frames Matrix3x3Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Matrix3x3InheritanceMatrix3x3 ObjectImplements laya.d3.core.IClone Matrix3x3 类用于创建3x3矩阵。 Public Properties PropertyDefined By  elements : Float32Array矩阵...

来源: laya_api 发布时间: 20170929

550. laya.d3.math.Matrix3x3 [ 36%]

...l Classes | Index | Frames No Frames Matrix3x3Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Matrix3x3InheritanceMatrix3x3 ObjectImplements laya.d3.core.IClone Matrix3x3 类用于创建3x3矩阵。 Public Properties PropertyDefined By  elements : Float32Array矩阵...

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