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

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

1041. 能不能让LayaFlash支持原生的条件编译 [ 67%]

...)->编译常量(Compiler Constats),写入 CONFIG::cn,false CONFIG::en,true 如图: 2.在代码中写入 CONFIG::cn{     [Embed(source="ui_cn.swf", mimeType="application/octet-stream")]     private const _Ui_SWF:Class;   } CONFIG::en{     [Embed(source="ui_en.swf", mimeType="applica...

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

1042. laya.ui.Image_API3.0 [ 67%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测...

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

1043. laya.resource.VideoTexture_API3.0 [ 67%]

...Resource.lock Defined in laya/resource/Resource.ts:95 是否加锁,如果true为不能使用自动释放机制。 Optional name name: string Inherited from Resource.name Defined in laya/resource/Resource.ts:97 名称。 url url: string Inherited from Resource.url Defined in laya/resource/Resource....

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

1044. WebSocket通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...192.168.1.2", 8899); //如果需要wss安全协议,第5个参数需要为true。 // let socket = new Laya.Socket("192.168.1.2", 8899, null, null, true); 2.1.2 connect 方法 先创建 Socket 对象,再调用 connect(host, port) 建立连接。 let socket = new Laya.Socket(); socket.connect("192....

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

1045. laya.media.VideoNode_API3.0 [ 67%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测...

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

1046. 2.0版本的子域还需要初始化MiniAdpter吗? [ 67%]

2.0版本的子域还需要初始化MiniAdpter吗? Laya.MiniAdpter.init(true,true); Laya.init(640,1136); 这样初始化,在opendata工程里会报错 Uncaught TypeError: Cannot read property 'init' of undefined at new Main (Main.ts:11) at Object.1../views/Rank (layaMaxUI.ts:1) at o (_prelude.j...

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

1047. HTML文本 · LayaAir3.0文档 · LAYABOX [ 67%]

...xt/css' href='html/test.css'/> * * style支持的属性如下: * italic:true|false; 是否是斜体 * bold:true|false; 是否是粗体 * letter-spacing:10px; 字间距 * font-family:宋体; 字体 * font-size:20px; 字体大小 * font-weight:bold:none; 字体是否是粗体,功能同bold * colo...

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

1048. 怎么清理掉 Sprite3D 相关的缓存资源, 资源destroy后内存还下降、。 [ 67%]

...           override public function destroy(destroyChild:Boolean = true):void {             if(effect3D != null){                 effect3D.destroy();                 effect3D = null;             }             super.destroy(true);        ...

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

1049. 粒子会不会有内存泄漏? [ 67%]

...itter = sp.emitter; emitter.stop(); emitter.clear(); sp.stop(); sp.destroy(true); Laya.stage.removeChild(sp); onAssetsLoaded(settings); }, 100); } })(); 这个例子 是不是说明 粒子有内存泄漏? 我不断new Particle2D 100ms后销毁该实例 我也调用了sp.desotry(true) 内存...

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

1050. laya.display.Input_API3.0 [ 67%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测...

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