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

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

91. 加载预制体json,返回值不统一 [ 65%]

...返回Prefab; 解决方式: Laya.loader.load("prefab/hero.json", Laya.Handler.create(this, function (obj) {             console.log('hero',obj);         }), null, Laya.Loader.PREFAB);         Laya.loader.create("prefab/WeiTiao.json", Laya.Handler.create(this, ...

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

92. 预加载进入游戏界面 [ 65%]

...。          */         public function load(url:*, complete:Handler = null, progress:Handler = null, type:String = null, priority:int = 1, cache:Boolean = true, group:String = null, ignoreCache:Boolean = false):LoaderManager { 2018-04-18 0 0 分享 微博 QZONE 微信 w1114367261 赞同...

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

93. layanative安卓端需要怎么添加ttf字体,需要增加两种字体? [ 65%]

... { import laya.display.Sprite; import laya.display.Text; import laya.utils.Handler; /** * ... * @author ww */ public class TestTTFLoader  {   public function TestTTFLoader()  { Laya.init(1000, 900);   Laya.loader.load("res/remember.ttf",new Handler(this,test)); }   private function test():void ...

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

94. 【分享】圆形进度条上图片跟随进度并旋转角度 [ 65%]

...,就分享给大家。  //首先是加载资源 Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false));      /** * 加载资源进度 * @param percent 百分比 */ private onLoading(percent: number): void { this.view.box_mark.graphics.dr...

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

95. LAYABOX游戏实时语音之APP版本 [ 65%]

...t android.content.Intent; import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.os.Message; import android.util.Log; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; import demo.MainActivity; import layaair.game.brows...

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

96. 微信小游戏加载外部json可以加载成功,但是加载外部图片就不行,没有任何反应 [ 65%]

...zz.shoujiyeyou.net/ ... ot%3B, "https://xxdzz.shoujiyeyou.net/ ... ot%3B], Handler.create(this, this.onLoaded), null, "json");   Laya.loader.load(["https://xxdzz.shoujiyeyou.net/mmphp/19.png"], Handler.create(this, this.nlll), null, "image");   一样的代码,上面加载json就可以,下面...

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

97. 缓动画Bug,给了回调函数之后是直接过时间后执行回调函数,但是之前的缓动画不会执行 [ 65%]

... = 0; Laya.Tween.to(this.bir, { x: 200, y: 200 }, 2000, () => { }, Laya.Handler.create(this, this.change));     这里面会直接过两秒执行this.change,而前面x:0->200  y:0->200不会执行  是什么原因??????     2017-08-09 添加评论 免费帖 --> 分享 微...

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

98. LayaAir与LayaFlash有什么区别? [ 65%]

...详细区别是什么? 自从layaflash起,就一直存在的bug Laya.Handler.create和new Laya.Handler有啥区别 LayaAir 3D 有提供 3D 物理引擎功能吗? 按官网上的文档 使用LayaNative运行LayaAir项目https://ldc.layabox.com/doc/?nav=zh-as-7-0-1。出现了问题 在初始化...

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

99. 回调函数找不到舞台上的对象 [ 65%]

...法有两个,第一个就是this.func.bind(this),第二个就是用new Handler(this,func) 2017-02-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进...

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

100. 如何实现类似AS3下的BitmapData.draw去截取区域图片? [ 65%]

...play.Sprite;     import laya.resource.Texture;     import laya.utils.Handler;     public class CupPhone     {         public function CupPhone()         {             Laya.init(550,400);             Laya.loader.load("walk.png",Handler.create(this,onLoaded));...

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