大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0083 秒)
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
...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
... Log.print("Message from server:"); if (message is String) { Log.print(message); } else if (message is ArrayBuffer) { Log...
来源: Laya_社区 发布时间: 20170209
...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
...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
...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
...) { 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
... 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
... public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function setWindowFullSize() : void { var stag...
来源: Laya_社区 发布时间: 20170317
...ed"); isLoaded = true; }), Laya.Handler.create(this, function (pro) { if (debug) console.log("Loading progresss : " + pro); }, null, false), Laya.Scene); Monica • 2018-03-21 11:01 @jinfawu:能否提供一个预加载多个文件的Demo呢?我看下 jinfawu • 2018-03-21 11:28 @Mo...
来源: Laya_社区 发布时间: 20180321