大约有 2,313 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0100 秒)
Laya_社区(1516) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
...{ var gameWorld = new Sprite(); Laya.stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create({ enableSleeping: true }); Matter.Engine.run(engine); ...
来源: Laya_社区 发布时间: 20180323
...Panel 构造函数中设置属性width、height的值都为100。 Panel addChild(child:Node):Node[override] 添加子节点。 Panel addChildAt(child:Node, index:int):Node[override] 添加子节点到指定的索引位置。 Panel addChildren(... args):void 批量增加子节点 Node addComp...
来源: Laya2.0_api 发布时间: 20190513
...nction initMatter():void { var gameWorld:Sprite = new Sprite(); Laya.stage.addChild(gameWorld); engine = Matter.Engine.create({enableSleeping:true}); Matter.Engine.run(engine); var render = LayaRender.create({engine:engine,container:gameWorld,width:stageWidth,height:stageHeight,options:{wireframes:t...
来源: Laya_社区 发布时间: 20171214
...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer contains customRender destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint g...
来源: Laya3.0_api 发布时间: 20231102
...,把加载回调中返回的完整场景scene添加到舞台 Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); /** ** 省略其它代码若干,可前往Layabox官网示例或相关文档中查看 */ })); ``` ##### 5.2.2 预设的加载与使用(.lh) ...
来源: Laya2.0_文档 发布时间: 20210714
...label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } this.owner.addChild(label); return label; } } 效果预览: (图2-1) Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20251010
...ethodDefined By FrameClip() 创建一个 FrameClip 实例。 FrameClip addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addLabel(label:String, index:int)...
来源: laya_api 发布时间: 20170422
...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer contains customRender destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint g...
来源: Laya3.0_api 发布时间: 20231102
...面 var testView:ui.test.TestPageUI = new ui.test.TestPageUI(); Laya.stage.addChild(testView); } } new LayaUISample; WorkerLoader.workerPath = "libs/worker.js"; 设置worker.js的路径,这个worker.js是Laya官方提供的,我们把他拷贝复制到我们自己设置的路径,这个js在Laya...
来源: Laya3.0_文档 发布时间: 20251010
...Methods MethodDefined By Scene() 创建一个 Scene 实例。 Scene addChild(node:Node):Node[override] 添加子节点。 Scene addChildAt(node:Node, index:int):Node[override] 添加子节点到指定的索引位置。 Scene addChildren(... args):void 批量增加子节点 Node addFrus...
来源: laya_api 发布时间: 20170929