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

大约有 555 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0044 秒)

511. 高级应用-寻路导航 [ 52%]

...ath(scene:Scene):void { for (var i:int = 0; i < pointCount; i++) { var str:String = "path" + i; path.push((scene.getChildByName('Scenes').getChildByName('Area').getChildByName(str) as MeshSprite3D).transform.localPosition); } } } }

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

512. 无法触发浏览器文件上传框 [ 52%]

... // 程序入口 class GameMain { private btn: Laya.Button; private skin: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () =&gt; { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); ...

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

513. scaleMode 用法 [ 52%]

...LE_FIXED_WIDTH或SCALE_FIXED_HEIGHT*/ public static const SCALE_FIXED_AUTO:String = &quot;fixedauto&quot;;

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

514. 怎么打包压缩几个JSON文件有没比较好的做法大家推进下 [ 51%]

...  bytes.uncompress();                          var str:String = bytes.toString();             bytes.clear();             bytes = null;                          var data:Object = JSON.parse(str);     2017-09-08 0 0 分享 微博 QZONE 微信 ...

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

515. 微信小游戏Laya.MiniAdpter.AutoCacheDownFile = true后第二次运行报错 [ 51%]

...not find scene:test/TestScene.scene";at api request fail callback function String   麻烦帮忙看看 附件 : --> testWxCacheFile.zip 2020-02-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同...

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

516. DOMException: The play() request was interrupted by a call to pause [ 51%]

...导致 /** 当前引擎版本。*/         public static var version:String = "1.7.8"; 附件 : --> src.zip 2017-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 麻...

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

517. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 51%]

...lic class MsgMgr { /**共享画布类型**/ public static var SHAREDRESIZE:String = "sharedresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init...

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

518. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 50%]

...Error函数: ```java private function onError(e:*):void { var errType:String; if (err.code = Geolocation.PERMISSION_DENIED) errType = "Permission Denied"; else if (err.code == Geolocation.POSITION_UNAVAILABLE) errType = "Position Unavailable"; else if (err.code == Geolocation.T...

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

519. 两个问题 有元件支援视频流渲染吗? Image元件读不了资料流 [ 50%]

...; var len = bytes.byteLength; for (var i = 0; i &lt; len; i++) { binary += String.fromCharCode( bytes[ i ] ); } return window.btoa( binary ); } mainvar picdata=message.slice(8); //从Byte流切出来的图块 this.VideoImg.skin="data:image/png;base64,"+_arrayBufferToBase64(picdata); error 附件 : -...

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

520. Animation创建和销毁的问题 [ 50%]

...false          */         public static function clearRes(url:String, forceDispose:Boolean = false):void { Loader.clearRes清理你把里面的第二个参数设置成false试试 如果还是不行的话你就把资源清理方法改用一下这个方法!还有如果你的图片小于5...

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