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

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

91. laya.d3.graphics.Vertex.VertexPositionTerrain [ 82%]

... Index | Frames No Frames VertexPositionTerrainProperties | Methods | Constants Packagelaya.d3.graphics.VertexClasspublic class VertexPositionTerrainInheritanceVertexPositionTerrain ObjectImplements IVertex VertexPositionTerrain 类用于创建位置、法线、纹理1、纹理2顶点结构。...

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

92. 2D物理-碰撞过滤器 [ 82%]

...(exports, Laya) { 'use strict'; class Physics_Physics_CollisionFiltering { constructor() { this.preMovementX = 0; this.preMovementY = 0; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.ali...

来源: Laya2.0_示例 发布时间: 20260106

93. UI-Input [ 82%]

...PUT_WIDTH = 300, INPUT_HEIGHT = 50, Y_OFFSET = 50, skins; class UI_Input { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.A...

来源: Laya2.0_示例 发布时间: 20260106

94. 鼠标交互-滑动 [ 82%]

...unction setup() { createSprtie(); drawTrack(); } function createSprtie() { const w = 50; const h = 30; button = new Sprite(); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.pivot(w / 2, h / 2); //设置宽高(要接收鼠标事件必须设置宽高,否则不会被命中) button.size(w...

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

95. 出现 编译错误 [ 81%]

...容相关的链接 提交 1 个回复 kylin 赞同来自: src/Main.js中将const删掉。 因为const的存在,编译器认为你声明了 const class class是关键字。 2019-10-23 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 138**...

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

96. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 81%]

...了 仅凭图确实难以判断 ZmySir • 2025-12-22 15:40 @LayaAir小牛:const { regClass, property } = Laya; @regClass() export default class iceMonster extends Laya.Script { declare owner: Laya.Sprite; /** 用于兜底的 Animator2D(可选) */ private _animator: Laya.Animator2D; /** 承载 ....

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

97. 鼠标交互-自定义事件 [ 81%]

...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。const ROTATE = "rotate"; class Interaction_CustomEvent { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canva...

来源: Laya2.0_示例 发布时间: 20260106

98. 定时器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 81%]

... false, delay, caller, method, args, coverBefore); } 使用示例如下: const { regClass } = Laya; import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { //60帧后,图片的透明度变为0.5 Laya.time...

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

99. UI-List [ 81%]

...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。const WID = 373, HEI = 85; const Box = Laya.Box; class Item extends Box { constructor(){ super(); const Image = Laya.Image; this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); } setImg(src) { this.img.skin =...

来源: Laya2.0_示例 发布时间: 20260106

100. 求详细的打包教程 [ 81%]

...目中设置,Laya.stage.screenMode /**不更改屏幕。*/ public static const SCREEN_NONE:String = "none"; /**自动横屏。*/ public static const SCREEN_HORIZONTAL:String = "horizontal"; /**自动竖屏。*/ public static const SCREEN_VERTICAL:String = "vertical";2、加速器版本设置横竖...

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