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

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

281. 缓动-时间线 [ 76%]

...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Tween_TimeLine { 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_示例 发布时间: 20251130

282. 鼠标穿透问题 [ 76%]

...t laya.ui.List; import laya.utils.Handler; import laya.webgl.WebGL; public class Bootstrapper extends Sprite { protected var _list:List; protected var _items:Array; protected var _loadingBg:Sprite; public function Bootstrapper() { Laya.init(696, 1118, WebGL); Laya.stage.bgColor = "#232628"; Laya.sta...

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

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

... 分完之后代码上要写什么?我按模块 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

284. 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 [ 76%]

...非你的代码有问题 代码如下 输出结果为 1   // 程序入口 class LayaSample{ private static aa:Child; private static bb:Child; constructor() { Laya.init(600,400); this.init(); } private init(){ LayaSample.aa = new Child(); LayaSample.aa.num("1"); LayaSample.bb = new Child(); LayaSamp...

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

285. laya.loaders.Texture2DLoader_API3.0 [ 76%]

...ls Only exported Menu Globals "laya/loaders/TextureLoader" Texture2DLoader Class Texture2DLoader Hierarchy Texture2DLoader Implements IResourceLoader Index Constructors constructor Methods load Constructors constructor new Texture2DLoader(): Texture2DLoader Defined in laya/loaders/TextureLoader.ts:2...

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

286. 3D变换 · LayaAir3.3 · 引擎文档 · LAYABOX [ 76%]

...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_文档 发布时间: 20251010

287. laya.d3.math.Ray_API3.0 [ 76%]

... All Inherited Externals Only exported Menu Globals "laya/d3/math/Ray" Ray Class Ray Ray 类用于创建射线。 Hierarchy Ray Index Constructors constructor Properties direction origin Methods at Constructors constructor new Ray(origin: Vector3, direction: Vector3): Ray Defined in laya/d3/math/Ray...

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

288. laya.components.Animation2DNext_API3.0 [ 76%]

...ly exported Menu Globals "laya/components/Animation2DNext" Animation2DNext Class Animation2DNext Hierarchy Animation2DNext Index Constructors constructor Properties conditions name Constructors constructor new Animation2DNext(): Animation2DNext Defined in laya/components/Animation2DNext.ts:7 Returns...

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

289. UI-ScrollBar [ 75%]

...crollBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ScrollBar { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHO...

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

290. 有关继承类的问题 [ 75%]

...unction (_super){ function Building(params) { Building.super(this); } Laya.class(Building,"Building",_super); return Building; })(Laya.Sprite)   //床 var Bed = (function (_super){ function Bed(params) { Bed.super(this); } Laya.class(Bed,"Bed",Building); return Bed; })()     var HomeView = (funct...

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