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

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

21. 怎么给List下的每个item中的button添加事件? [ 63%]

...12 17:22 var btns = new Array; this.btnBox = new Laya.Sprite(); Laya.stage.addChild(this.btnBox); for(var i = 0; i < 5; i++){ var btn = new Laya.Sprite(); btn.loadImage("Key.jpg",i*100,800,100,60); btn.id= i; btns.push(btn); this.btnBox.addChild(btn); console.log(btn.id); } for(var i = ...

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

22. laya.d3.core.light.PointLight_API3.0 [ 63%]

...tion shadowStrength timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getCompo...

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

23. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

... private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHandler(e: any = null): void { this.onLoaded(); } } 编译运行代码,效果如图3-3所示,说明地图已创建成功。 (图3-3) 3.3...

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

24. laya.d3.core.BaseCamera_API3.0 [ 62%]

...nderer timer transform url Methods _initialize _processActive addAllLayers addChild addChildAt addChildren addComponent addComponentInstance addLayer bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent...

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

25. laya.d3.core.light.SpotLight_API3.0 [ 62%]

...wStrength spotAngle timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getCompo...

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

26. laya.d3.core.RenderableSprite3D_API3.0 [ 62%]

...ildren parent scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getCompo...

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

27. 射线BUG [ 62%]

...t(); this.phasorSpriter3D = new Laya.PhasorSpriter3D(); this.camera = this.addChild(new Laya.Camera(0, 0.1, 100)); this.camera.transform.translate(new Laya.Vector3(0, 1, 3)); //camera.addComponent(CameraMoveScript); this.camera.clearColor = null; } Laya.class(MousePickingScene, "MousePickingScene", ...

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

28. laya.d3.core.light.DirectionLight_API3.0 [ 62%]

...dowTwoCascadeSplits timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getCompo...

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

29. laya.d3.core.MeshTerrainSprite3D_API3.0 [ 61%]

... parent scene timer transform url width Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getCom...

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

30. 预制体模块 · LayaAir3文档 · LAYABOX [ 61%]

...Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看看3D预...

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