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

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

711. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 78%]

... 2018-06-20 0 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自:    public var popupEffect:Handler;         /**          * 关闭对话框效果,可以设置一个效果代替默认的关闭效果,如果不想有任何效果,可以赋值为null          * 全局...

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

712. 粒子-粒子演示2 [ 78%]

...de.part", Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } public onAssetsLoaded(settings: ParticleSetting): void { this.sp = new Particle2D(settings); this.sp.emitter.start(); this.sp.play(); Laya.stage.addChild(this.sp); this.sp.x = Laya.stage.width / 2; this.sp.y = Laya.stage.heig...

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

713. 粒子-粒子演示3 [ 78%]

...ew.part", Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } public onAssetsLoaded(settings: ParticleSetting): void { this.sp = new Particle2D(settings); this.sp.emitter.start(); this.sp.play(); Laya.stage.addChild(this.sp); this.sp.x = Laya.stage.width / 2; this.sp.y = Laya.stage.heig...

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

714. Web Storage数据存储(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 78%]

...ascript package { import laya.net.LocalStorage; import laya.utils.Browser; public class LayaSample { public function LayaSample() { Laya.init(100,100); LocalStorage.setItem("key","hello"); LocalStorage.setItem("data","hello"); var data:Object = {"index":0,"index1":1}; LocalStorage.setJSON("item",dat...

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

715. laya.ui.LayoutBox [ 78%]

...mes No Frames LayoutBoxProperties | Methods | Events Packagelaya.uiClasspublic class LayoutBoxInheritanceLayoutBox Box Component Sprite Node EventDispatcher ObjectSubclasses HBox, VBox LayoutBox 是一个布局容器类。 Public Properties Hide Inherited Public Properties Show Inherited Public P...

来源: laya_api 发布时间: 20170929

716. TiledMap销毁的问题,TiledMap销毁后屏幕变灰,不能显示 [ 78%]

...相关的代码里面 在TiledMap的destroy方法内 /** * 销毁地图 */ public function destroy():void { ....... //这里是销毁地图层的代码 var tLayer:MapLayer; for (i = 0; i < _layerArray.length; i++) { tLayer = _layerArray[i]; tLayer.clearAll(); } ........ }然后在MapLayer的clear...

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

717. 鼠标脚本(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 78%]

...cript class MouseScript extends Script3D{ private var meshsp:MeshSprite3D; public function MouseScript() {} /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ override public function onAwake():void{ //获取脚本的拥有者 m...

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

718. 微信小游戏想使用截图功能是使用canvasToTempFilePath()吗 [ 78%]

...ImageData,需重写,记得赋值到window */ export class ImageData { public data: Uint8ClampedArray; public width: number; public height: number; public constructor(width: number, height: number) { this.width = width; this.height = height; this.data = new Uint8ClampedArray(width * height * 4); ...

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

719. [LayaNative2]Laya2.0 更新最新的2.13.9.3 16kb库会时不时的断网,导致游戏直接卡主 [ 78%]

...             ***        I  JSWebSocketDelegate::onClose()this={public}x ws={public}x 2025-11-14 10:03:41.989  9605-10051 LayaBox                 ***          I  WebSocket onSocketCallback connection closing 30 reason 2025-11-14 10:03:41.995  9605-9751  LayaBox      ...

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

720. 本地双击html如何打开laya项目? [ 78%]

...自动安装,这样只需要访问apk就可以解决了,安装apk: public static boolean install(Context context, String filePath) { Intent i = new Intent(Intent. ACTION_VIEW); File file = new File(filePath); if (file != null && file.length() > 0 && file.exists() && ...

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