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

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

341. TimeLine如何判断其是否已经被销毁? [ 77%]

...timeLine给destroy,此时就会报错,那么我该如何加一个条件if判断timeLine1有没有被销毁? 附件 : --> 2016-12-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 第...

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

342. laya2.0 截图功能分享,直接截取屏幕上所有对象 [ 77%]

....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

343. 同步龙骨插槽动画方案 [ 77%]

...oveChildren();//从显示列表移除龙骨动画子对象         if (!this.mArmature.destroyed) {             this.mArmature.destroy(true);         }         this.mFactory.destroy();//释放动画模板类下的纹理数据     } }     xx{     this.mSk...

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

344. 分享个用美术资源做位图文本的方法。。。 [ 77%]

...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

345. 微信小游戏渲染开放域卡顿处理 [ 76%]

...// 检测             var texture = self.$texture;             if (texture) {                 let timer = self.$timer;                 // 通知+延迟刷新界面                 let post = pfUtils.postMessage;                 // post('resume');       ...

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

346. IOS 音乐和音效 切后台再回来 之后声音消失 [ 76%]

...能正常播放了。     static _visibilityChange() {             if (ILaya.stage.isVisibility) {                 SoundManager._recreateWebAudio(() => { SoundManager._stageOnFocus(); });             }             else {                 SoundManager._stageOnBlu...

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

347. 在Native端IOS下提示反射找不到方法? [ 76%]

...如下:(调用静态方法,其中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

348. 输入设备-指南针 [ 76%]

...dicator.y = compassImg.y; } function onOrientationChange(absolute, info) { if (info.alpha === null) { alert("当前设备不支持陀螺仪。"); } else if (firstTime && !absolute && !Browser.onIOS) { firstTime = false; alert("在当前设备中无法获取地球坐标系,使用设备坐标系,...

来源: Laya_示例 发布时间: 20251209

349. AS3与JS混合编码(ActionScript-2D进阶篇(AS3)-扩展模块) [ 76%]

...览器常用的函数封装起来。 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

350. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 76%]

...标转换为百度坐标 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