大约有 1,489 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0063 秒)
...timeLine给destroy,此时就会报错,那么我该如何加一个条件if判断timeLine1有没有被销毁? 附件 : --> 2016-12-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 第...
来源: Laya_社区 发布时间: 20161215
....Texture; /**截图 */ public static drawScreenshot(width, height, x, y) { if (!SwitchHelper.screenDraw) { return null; } if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(system.width, system.height); } if (!this.tempTexture) { this.tempTexture = new Laya.Texture(this.tempTexture...
来源: Laya_社区 发布时间: 20191016
...oveChildren();//从显示列表移除龙骨动画子对象 if (!this.mArmature.destroyed) { this.mArmature.destroy(true); } this.mFactory.destroy();//释放动画模板类下的纹理数据 } } xx{ this.mSk...
来源: Laya_社区 发布时间: 20200618
...Laya.init(600,400); var that = this; Laya.loader.load([{"url":"res/playerKpiFont.json","type":Laya.Loader.JSON}, {"url":"res/playerKpiFont.png","type":Laya.Loader.IMAGE}],new Laya.Handler(that,function(){ var jsonData = Laya.loader.getRes("res/playerKpiFont.json"); var imageData = Laya.loader.getRes...
来源: Laya_社区 发布时间: 20161014
...// 检测 var texture = self.$texture; if (texture) { let timer = self.$timer; // 通知+延迟刷新界面 let post = pfUtils.postMessage; // post('resume'); ...
来源: Laya_社区 发布时间: 20181114
...能正常播放了。 static _visibilityChange() { if (ILaya.stage.isVisibility) { SoundManager._recreateWebAudio(() => { SoundManager._stageOnFocus(); }); } else { SoundManager._stageOnBlu...
来源: Laya_社区 发布时间: 20180425
...如下:(调用静态方法,其中Android使用方法调用正常) if (Laya.Render.isConchApp) { // 通过反射机制,调用Android和IOS原生代码的类和方法 let className = Laya.Browser.onAndriod ? "com.xxxx.yyyy.JSProxy" : "JSProxy"; console.log("className = " + className); var js...
来源: Laya_社区 发布时间: 20170919
...dicator.y = compassImg.y; } function onOrientationChange(absolute, info) { if (info.alpha === null) { alert("当前设备不支持陀螺仪。"); } else if (firstTime && !absolute && !Browser.onIOS) { firstTime = false; alert("在当前设备中无法获取地球坐标系,使用设备坐标系,...
来源: Laya_示例 发布时间: 20251209
...览器常用的函数封装起来。 window.as代码如下: ```java /*[IF-FLASH]*/package { public class window { public function window() { } public static function alert(msg:Object):void { } } } ``` `/*[IF-FLASH]*/`是LayaCompiler的编译宏,其后的类不会被编译为JS,对此不了解...
来源: Laya2.0_文档 发布时间: 20210715
...标转换为百度坐标 private convertToBaiduCoord(data: any): void { if (data.status == 0) { var position: any = data.points[0]; // 设置标注物位置 this.marker.setPosition(position); this.map.panTo(position); } } ``` 在转换完成后设置标注物的位置,并且把视...
来源: Laya2.0_文档 发布时间: 20210714