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

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

431. Laya Label text不显示 [ 73%]

Laya Label text不显示 public static showNativeGroup() { /* if (this.nativeGroup) { return; } */ var self = this; Laya.View.load(SdkUtil.sdkDomain + "sdkres/laya/native/NativeGroup.json", new Laya.Handler(this, function (group: Laya.View) { /* if (this.nativeGroup) { return; } */ self.nativeGroup...

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

432. 聚光灯实时阴影(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 73%]

...ber = 0;i<childLength;i++) { var childSprite:Node = scene3d.getChildAt(i); if(childSprite instanceof MeshSprite3D) { //设置精灵接收阴影 childSprite.meshRenderer.receiveShadow = true; //设置精灵可投射阴影 childSprite.meshRenderer.castShadow = true; } else if(childSprite instanceof Sp...

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

433. Socket连接不上(已解决) [ 73%]

...           Log.print("Message from server:");             if (message is String)             {                 Log.print(message);             }             else if (message is ArrayBuffer)             {                 Log...

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

434. 关于LayaBox启动的问题。 [ 73%]

...tivity :com.klzz.platform/.PlatformActivity I/wpa_supplicant( 4401): [CTRL_IFACE] wlan0: 'SIGNAL_POLL' D/Analytics.UploadTask.4837.621( 4837): [uploadEventLog] D/Analytics.DBMgr.4837.621( 4837): [find] DBMgr,sql:SELECT * FROM log ORDER BY priority DESC , time DESC LIMIT 20 D/Analytics.LogStoreMgr.48...

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

435. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 73%]

...his, onKeyDown); Stat.show(); } private function onKeyDown(e:Event):void { if (e.keyCode === Keyboard.H) { sp.visible = false; //隐藏界面,清理资源 Laya.loader.clearTextureRes("res/bg.jpg"); Laya.loader.clearTextureRes("res/fighter.atlas"); } else if (e.keyCode === Keyboard.S) { //显示界...

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

436. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 73%]

...his, onKeyDown); Stat.show(); } private function onKeyDown(e:Event):void { if (e.keyCode === Keyboard.H) { sp.visible = false; //隐藏界面,清理资源 Laya.loader.clearTextureRes("res/bg.jpg"); Laya.loader.clearTextureRes("res/fighter.atlas"); } else if (e.keyCode === Keyboard.S) { //显示界...

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

437. 性能测试-虫子(慎入) [ 73%]

...) { let maggotContainer; for (let i = 0; i wb.x + wb.width) x -= wb.width; if (y wb.y + wb.height) y -= wb.height; maggot.pos(x, y); } tick += 0.1; } } new PerformanceTest_Maggots();module laya { import Sprite = Laya.Sprite; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat =...

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

438. TypeScript语法问题,泛型 [ 73%]

... class, new() { private static T instance; public static T GetInstence() { if (null == instance) { instance = new T(); } return instance; } } 这样我在其他地方,继承Class1,就可以直接类名.GetInstence()获取该类的实例 2018-06-19 添加评论 免费帖 --> 分享 微博 QZONE ...

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

439. swf转成H5资源显示超出原有范围 [ 73%]

...      public function Main():void         {             if (stage) init();             else addEventListener(Event.ADDED_TO_STAGE, init);         }                  private function setWindowFullSize() : void         {             var stag...

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

440. Laya.loader.create中的progress回调好像不准确? [ 73%]

...ed&quot;); isLoaded = true; }), Laya.Handler.create(this, function (pro) { if (debug) console.log(&quot;Loading progresss : &quot; + pro); }, null, false), Laya.Scene); Monica • 2018-03-21 11:01 @jinfawu:能否提供一个预加载多个文件的Demo呢?我看下 jinfawu • 2018-03-21 11:28 @Mo...

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