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

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

781. 如何才能生成scene配套的代码 [ 72%]

...的代码 在demo里有个类TestSceneUI 请问如何才能生成 /**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ package ui.test { import laya.ui.*; import laya.display.*; public class TestSceneUI extends Scene { public var scoreLbl:Label; public var...

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

782. laya.d3.graphics.StaticBatchManager [ 72%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames StaticBatchManagerMethods Packagelaya.d3.graphicsClasspublic class StaticBatchManagerInheritanceStaticBatchManager Object StaticBatchManager 类用于静态批处理管理的父类。 Public Methods  MethodDefined By  ...

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

783. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 72%]

...EffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报错 Main.js:61 Uncaught ReferenceError: ui is not defined 之前有人提过这个问题...

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

784. UI-ProgressBar [ 72%]

...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class UI_ProgressBar { 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...

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

785. laya.events.MouseManager [ 72%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames MouseManagerProperties | Methods | Constants Packagelaya.eventsClasspublic class MouseManagerInheritanceMouseManager Object MouseManager 是鼠标、触摸交互管理器。 鼠标事件流包括捕获阶段、目标阶...

来源: laya_api 发布时间: 20170929

786. laya.components.Component [ 72%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ComponentProperties | Methods Packagelaya.componentsClasspublic class ComponentInheritanceComponent ObjectImplements laya.resource.ISingletonElement, laya.resource.IDestroySubclasses CommonScript, Script Component 类用...

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

787. 3D变换 · LayaAir3.0文档 · LAYABOX [ 72%]

...x、y和z方向上分别移动距离1,示例代码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Sprite3D }) public cube: Laya.Sprite3D; // 平移距离 private translate: Laya.Vector3 = new Laya.Vector3(1, 1, 1); cons...

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

788. typescript类文件只能放同一目录下吗? [ 72%]

... 分完之后代码上要写什么?我按模块 src/core 下 module core class datahelper{}然后 var co = new core.datahelper(); 认不到啊 fishkuro • 2017-03-25 11:26 怎么弄啊,我src/core 下 module core class datahelper{}然后 var co = new core.datahelper(); 认不到啊

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

789. laya.device.Shake [ 72%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ShakeProperties | Methods Packagelaya.deviceClasspublic class ShakeInheritanceShake EventDispatcher Object Shake只能在支持此操作的设备上有效。 Public Properties PropertyDefined By  instance : Shake[stat...

来源: laya_api 发布时间: 20170929

790. 文本-自动调整文本尺寸 [ 72%]

...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Text_AutoSize { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALI...

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