大约有 171 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)
...import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class GraCmdsDemo { public function GraCmdsDemo() { //初始化舞台 Laya.init(Browser.width,Browser.height,WebGL); //预加载资源 Laya.loader.load(['apes/monkey0.png','apes/monkey...
来源: Laya_社区 发布时间: 20170519
...s","res/atlas/cartoon.atlas","res/atlas/miner.atlas","gameConf.json"],Laya.Handler.create(this,onloaded),null,null); 2018-07-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 陈帅 赞同来自: 文件目录如...
来源: Laya_社区 发布时间: 20180723
...览找不到 Laya.loader.create("res/layaScene_house/layafight.ls", Laya.Handler.create(this, onComplete)); 这种加载res下面资源方式。微信扫码在手机上找不到资源是怎么回事呢,在浏览器或者模拟器都是正常的 2018-05-07 添加评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20180507
...ion;Laya.Tween.to(box.potOld,{ x:1 ,y:2 ,update:new Laya.Handler(box,function(){ this.transform.position = this.potOld; }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){ console.log("complete"); }),ConstValue.animation...
来源: Laya_社区 发布时间: 20170630
hBox使用问题 Laya.loader.load(picAy,Handler.create(this, onAssetLoaded)) private function onAssetLoaded():void { for(var i:int=0;i<picAy.length;i++) { var texture:Texture= Loader.getRes(picAy); var ape:Sprite = new Sprite; //ape.x=i*(stageWidth/4) //Tween.to(ape, { x : i*(stageWidth/4) },150...
来源: Laya_社区 发布时间: 20161026
...同来自: 可以预加载,试下下面的方式:Laya.loader.load(url, Handler.create(this, onComplete), null, Loader.BUFFER); 2017-05-05 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 hhj2357620 相关问题 2.0一不小心删了bin...
来源: Laya_社区 发布时间: 20170505
...常,但按键回调函数中调用DoFunc报错 我现在得到结论 KeyHandler中的this不能指代__proto对象 要使this指代过去,我记得参数中要加个参数才对,麻烦看下是不是转换问题,还是有这种写法 附件 : --> 2017-01-23 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170123
...dateHandle.handleMessage(AutoUpdateAPK.java:101) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6211) at java.lang.reflect.Method.invoke(Native M...
来源: Laya_社区 发布时间: 20200613
...分享 微博 QZONE 微信 kylin 赞同来自: 第813行 Config.FunRestart=Handler.create(this,this.on重启); 定义的变量、函数名等,不要出现中文等非ASCII字符,变量的命名最好要符合规范。 LayaAirIDE里的压缩工具会分析代码,类似的中文命名的变...
来源: Laya_社区 发布时间: 20180806
...交 3 个回复 Laya_Aaron 赞同来自: Laya.loader.load("abc.ttf",Laya.Handler.create(this, this.abc)); demo里没写预加载字体的代码, 先加载字体,然后再在回调方法里 初始化场景 abc():void{ GameConfig.startScene && Laya.Scene.open(GameConfig....
来源: Laya_社区 发布时间: 20191217