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

大约有 2,982 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0065 秒)

591. 输入设备-贪吃蛇(重力感应) [ 75%]

...[], foods = [], initialSegmentsAmount = 5, vx = 0, vy = 0, targetPosition; class InputDevice_GluttonousSnake { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Accelerator = Laya.Accelerator; // 不支...

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

592. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 75%]

...址](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=3D&class=laya.d3.component.Script3D)),在3D世界的开发中脚本类会在很多地方被使用,该组件将会在后面的脚本篇中详细的讲解,在本篇只是简单的讲解如何给Sprite3D添加一个脚本。 ...

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

593. 1.7.3之后的版本,重复类名出现bug [ 75%]

...下。编译器编译出来,命名的时候都是错乱的 比如: __class(StartUpCommand,'com.game.modules.hall.controller.StartUpCommand',_super); __class(StartUpCommand,'com.game.modules.login.controller.StartUpCommand',_super,'StartUpCommand$1'); __class(StartUpCommand,'com.game.shell.contro...

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

594. 如何取消监听 [ 75%]

...off需要指定监听函数,但是我在设置监听是如下写的: class a {_EventMgr.on("xxx", () => {this.xxx();}); } _EventMgr是一个全局的监听类,在class a中设置监听并处理,但我删除这个a的实例并重新创建,发现触发事件时,处理函数会调用2次...

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

595. 程序蓝图 · LayaAir3.0文档 · LAYABOX [ 75%]

...编辑器中。 3.1 类 需要在类定义之前使用装饰器的标识@bpClass,示例代码如下所示: const { bpClass } = BP; @bpClass({ name:"TestBluePrint", canInherited: true, extends:"Script" }) export class TestBluePrint extends Laya.Script { } 需要注意的是,只有注册了构...

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

596. laya.d3.component.volume.VolumeManager_API3.0 [ 75%]

...ported Menu Globals "laya/d3/component/Volume/VolumeManager" VolumeManager Class VolumeManager VolumeManager 类用于管理体积组件 Hierarchy VolumeManager Implements IVolumeManager Index Constructors constructor Properties _volumetricGIManager ReflectionProbeVolumeType VolumetricGIType Accesso...

来源: Laya3.0_api 发布时间: 20231115

597. laya.display.cmd.DrawCurvesCmd [ 75%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames DrawCurvesCmdProperties | Methods | Constants Packagelaya.display.cmdClasspublic class DrawCurvesCmdInheritanceDrawCurvesCmd Object 绘制曲线 Public Properties PropertyDefined By  lineColor : * 线段颜色,或...

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

598. UI-TextArea [ 75%]

...、LayaAirIDE让项目开发更高效。let skin = "res/ui/textarea.png"; class UI_TextArea { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.sta...

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

599. laya.d3.math.BoundBox_API3.0 [ 75%]

...ited Externals Only exported Menu Globals "laya/d3/math/BoundBox" BoundBox Class BoundBox BoundBox 类用于创建包围盒。 Hierarchy BoundBox Implements IClone Index Constructors constructor Properties max min Methods clone cloneTo getCenter getCorners getExtent setCenterAndExtent toDefault crea...

来源: Laya3.0_api 发布时间: 20231115

600. laya.d3.core.render.command.DrawMeshInstancedCMD_API3.0 [ 75%]

...ls "laya/d3/core/render/command/DrawMeshInstancedCMD" DrawMeshInstancedCMD Class DrawMeshInstancedCMD Hierarchy Command DrawMeshInstancedCMD Index Constructors constructor Properties maxInstanceCount Accessors bufferState material mesh Methods destroy recover run setContext setDrawNums setWorldMatri...

来源: Laya3.0_api 发布时间: 20231115