大约有 1,763 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0057 秒)
Laya_社区(623) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya3.0_文档(85) Laya2.0_api(67) laya_api(64)
...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
...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
... 分完之后代码上要写什么?我按模块 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
...非你的代码有问题 代码如下 输出结果为 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
...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
...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
... 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
...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
...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
...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