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

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

1. LayaNative加速器环境html启动文件规范须知 [ 100%]

...用mp3格式;在加速器里的判断依据可以这样写: var Music:String; If(window.conch){ Music = “wav”或“ogg” }else{ Music = “mp3” } 5、在加速器环境下html文件里不支持通过script代码或div节点创建canvas画布;   6、游戏里的方法命名别叫:gc,...

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

2. 加载一个txt文件 getRes出来类型为string 能转换成数组吗 [ 94%]

加载一个txt文件 getRes出来类型为string 能转换成数组吗 Laya.loader.load("res/text.txt", Handler.create(this, onAssetLoaded1), null, Loader.TEXT); var pic1 = Loader.getRes("res/2D特效/text.txt"); console.log(typeof pic1); 输出的类型为string 2017-06-20 添加评论 免费帖 ...

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

3. 打包后启动游戏后报错 [ 91%]

...可以正常运行,打包后才会出现问题 public function send(type:String,url:String,callbackName:String):void { this.type = type; //发送请求 var script:* = Browser.createElement("script"); script.id = "serverlist"; Browser.document.head.appendChild(script); script.src = url; script.type...

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

4. 骨骼动画 如何可以对某一个骨骼进行换肤 [ 90%]

...题,可以参考下我们的APISkeleton replaceSlotSkinByIndex(slotName:String, oldIndex:int, newIndex:int):void 替换插槽的贴图索引 replaceSlotSkinName(slotName:String, oldName:String, newName:String):void 替换插槽贴图名 setSlotSkin(slotName:String, texture:Texture):void 设置自...

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

5. 求详细的打包教程 [ 88%]

...a.stage.screenMode /**不更改屏幕。*/ public static const SCREEN_NONE:String = "none"; /**自动横屏。*/ public static const SCREEN_HORIZONTAL:String = "horizontal"; /**自动竖屏。*/ public static const SCREEN_VERTICAL:String = "vertical";2、加速器版本设置横竖屏请参考:横...

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

6. 如何实现类似unity3dFixedUpdate的每秒固定的帧 [ 86%]

...,以60的帧率运行。*/         public static const FRAME_FAST:String = "fast";         /**慢速模式,以30的帧率运行。*/         public static const FRAME_SLOW:String = "slow";         /**自动模式,以30的帧率运行,但鼠标活动后会自动加速...

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

7. 同步龙骨插槽动画方案 [ 75%]

...eton     private _handler: Laya.Handler;      constructor(url: string, handler: Laya.Handler, aniMode: number = 0) {         this._handler = handler;         this.mFactory = new Laya.Templet();         this.mFactory.on(Laya.Event.COMPLETE, this, this...

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

8. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 73%]

...te;         public var percent:Number;         public var type:String = "PROGRESS_TIMER_TYPE_RADIAL";         public var reverseDirection:Boolean = true;         public var spSize:Size;                  public static var PROGRESS_TIMER_TYPE_RADIAL:String = "PROGRE...

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

9. [unity动画导出] unity导出3d动画报错 [ 71%]

...>:0) n.a () (at <0524304338e24b0bb697e3c82a810b25>:0) n.b (System.String A_0) (at <0524304338e24b0bb697e3c82a810b25>:0) LayaAir3D.exportResource (System.Boolean isDebug, System.Int32 Platformindex, System.String lastname) (at <0524304338e24b0bb697e3c82a810b25>:0) b+k.b () (at &l...

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

10. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 68%]

...有要求的,见以下代码片段(laya.net.Loader):var directory:String = (this._data.meta && this._data.meta.prefix) ? URL.basePath + this._data.meta.prefix : this._url.substring(0, this._url.lastIndexOf(".")) + "/"; var url:String = directory + name; loadedMap[url] = Texture.creat...

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