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

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

1211. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 41%]

...: **入口类GameMain.ts** ```typescript // 程序入口 class GameMain{ constructor() { //初始化引擎 Laya.init(1334,750,Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler...

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

1212. 高级应用-Laya3D与网页混合 [ 41%]

...threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"));class Laya3DCombineHtml { constructor() { var div = Laya.Browser.window.document.createElement("div"); div.innerHTML = "此内容来源于HTML网页, 可直接在html代码中书写 - h1标签"; document.body.appendChild(div); //1.开启第四个参...

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

1213. laya.d3.utils.Physics3DUtils [ 41%]

...Property Detailgravitypropertypublic static var gravity:Vector3重力值。Constructor DetailPhysics3DUtils()Constructorpublic function Physics3DUtils() 创建一个 Physics 实例。 Method DetailgetIColliderCollision()method public static function getIColliderCollision(collider1:PhysicsComponent, ...

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

1214. Resources already exist,is repeated loading 加载特效报重复加载 [ 41%]

... private sp: Laya.Particle2D;     private sp3d: Laya.Sprite3D;     constructor(){         //初始化引擎         Laya3D.init(1134,640);         Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;         Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;       ...

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

1215. 鼠标交互-拖动 [ 41%]

...res/apes/monkey2.png"; private ape: Sprite; private dragRegion: Rectangle; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

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

1216. laya.physics.PhysicsDebugDraw_API3.0 [ 41%]

...启,或者通过IDE设置打开 Hierarchy Sprite PhysicsDebugDraw Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blend...

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

1217. laya.ui.ScaleBox_API3.0 [ 40%]

...,子内容按照原始最小宽高比缩放 Hierarchy Box ScaleBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgCo...

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

1218. IDE-显示IDE创建的界面 [ 40%]

...mport Loader = Laya.Loader; class TestUI extends game.ui.test.TestPageUI { constructor() { super(); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Laya.CLICK, this, this.onBtnClick); this.btn2.on(Laya.CLICK, this, this.onBtn2Click); } private onBtn...

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

1219. IDE-显示IDE创建的界面 [ 40%]

...mport Loader = Laya.Loader; class TestUI extends game.ui.test.TestPageUI { constructor() { super(); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Laya.CLICK, this, this.onBtnClick); this.btn2.on(Laya.CLICK, this, this.onBtn2Click); } private onBtn...

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

1220. laya.ui.Box_API3.0 [ 40%]

...UIComponent Box List LayoutBox Panel UIGroup ScaleBox Tree ViewStack Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgCo...

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