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

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

371. 弹窗视图组件 · LayaAir3.0文档 · LAYABOX [ 58%]

...Dialog(); let bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.addChild(bg); let button: Laya.Button = new Laya.Button(this.assets[1]); button.name = Laya.Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this.CLOSE_BTN_WIDTH - this.CLOSE_BTN_PADDING, this.CLOSE_BTN_PADDING); this.dialog.addC...

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

372. laya.ui.View_API3.0 [ 58%]

... viewport visible width x y zOrder root Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer close contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fresh...

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

373. laya.display.Text [ 57%]

...ethods MethodDefined By  Text() 创建一个新的 Text 实例。 Text addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加...

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

374. 分享一下自己的屏幕适配方案 [ 57%]

... this.Img.x =0; this.Img.y =0; this.Img.url ="../game/1.png"; Laya.stage.addChild(this.Img); //获取图片初始x y轴坐标 this.ImgX=this.Img.x; this.ImgY =this.Img.y; this.layout(); Laya.stage.on(Laya.Event.RESIZE, this, this.layout); Laya.stage.on(Laya.Event.ADDED, this, this.layout);   layout...

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

375. laya.display.Text [ 57%]

...ethods MethodDefined By  Text() 创建一个新的 Text 实例。 Text addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node  changeText(text:String):void ...

来源: laya_api 发布时间: 20170929

376. 【悬赏版】动态更换SkinedMeshSprite3D对象,替换后,对象缩小了 [ 57%]

...quipSkinedMeshSprite3D:Laya.SkinnedMeshSprite3D; this.role3D.getChildAt(0).addChild(equipSkinedMeshSprite3D); equipSkinedMeshSprite3D.transform.scale = new Laya.Vector3(2.54, 2.54, 2.54);   补充:         衣服单独添加到场景没有问题,         添加到人物上,就会出...

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

377. laya.display.Input [ 57%]

...ds MethodDefined By  Input()创建一个新的 Input 类实例。Input addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加...

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

378. 关于对象池Laya.Pool的用法 [ 57%]

...sp = Pool.getItemByClass(SPRITE_SIGN, Sprite) sprites.push(sp); Laya.stage.addChild(sp); } } initialize(); Laya.stage.on("click", this, function() {     var sp;     for(var i = 0, len = sprites.length; i < len; i++)     {         sp = sprites.pop();       ...

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

379. laya.display.Stage [ 57%]

...只有一个stage实例,此实例可以通过Laya.stage访问。Stage addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node clearTimer(caller:*, method:Functio...

来源: laya_api 发布时间: 20170929

380. laya.d3.core.Camera_API3.0 [ 57%]

...sible _needRenderGamma _processActive _updateCameraRenderData addAllLayers addChild addChildAt addChildren addCommandBuffer addComponent addComponentInstance addLayer bubbleEvent callLater clearTimer clone contains convertScreenCoordToOrthographicCoord destroy destroyChildren event frameLoop frameOn...

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