大约有 443 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)
... */ public static function getFileInfo(fileUrl:String):Object { return MiniFileMgr.getFileInfo(fileUrl); } /** * 获取缓存文件列表 * @return ...
来源: Laya_社区 发布时间: 20180809
...始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp:Sprite = new Sprite(); sp.loadImage(data,0,0,200,200); Laya.stage.addChild(sp); } } } ``` 通过data来当做url传递给loadImage...
来源: Laya2.0_文档 发布时间: 20210715
...容相关的链接 提交 2 个回复 小邦 赞同来自: public static String getProcessName(Context context) { ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); for (ActivityManager.RunningAppProcessInfo processInfo : manager.getRunningAppProcesses())...
来源: Laya_社区 发布时间: 20200829
...d: Laya.GTextField = ui3d_root.getChildByName("txt"); txtField.text = "New String"; } } 2025-10-21 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 种花家 相关问题 2.0一不小心删了bin目录下的某个场景json文件。。竟...
来源: Laya_社区 发布时间: 20251020
...psys power 命令查看(win10上可以用 adb shell dumpsys power|Select-String Wake过滤) 会看到: Wake Locks: size=1 PARTIAL_WAKE_LOCK 'AudioMix' (uid=1013, pid=0, ws=WorkSource{10357}) 一直得不到释放! 随便下载其他引擎做的app游戏,会发现运行...
来源: Laya_社区 发布时间: 20211228
....loader.on(Event.ERROR, this, onError); } protected function onError(error:String):void { trace(error); } protected function onLoaded():void { Animation.createFrames(["war/hero_fly1.png", "war/hero_fly2.png"], "hero_fly"); var animation:Animation = new Animation(); //animation.loadImages(["war/hero_...
来源: Laya_社区 发布时间: 20161026
...])); printScreenInfo("bbb"); private onResLoaded(parent:Laya.Node, winName:string, zOrder:number):void { printScreenInfo("ccc"); this.doOpen(parent, winName, zOrder); } aaa Screen Info: stage=(750,1334), stage design=(750,1334), browser=(300,278), browser client=(300,278), pixel ratio=1 ...
来源: Laya_社区 发布时间: 20180316
...rawLine(fromX: number, fromY: number, toX: number, toY: number, lineColor: string, lineWidth: number = 1): DrawLineCmd { return this.addCmd(DrawLineCmd.create(fromX, fromY, toX, toY, lineColor, lineWidth)); } 代码示例: let sp = new Laya.Sprite(); //画直线 sp.graphics.drawLine(10, 58, 146, 5...
来源: Laya3.0_文档 发布时间: 20251010
...来之后atlas图集图片加载不出来,怎么办,好像是进入n="string"==typeof n?JSON.parse(n):n,这个n变成“”了,但是加载有路径啊 2020-04-07 0 1 分享 微博 QZONE 微信 熊猫大侠 赞同来自: 头条有时候 加载不到资源 有遇到吗? 2020-04-17 0 1 分...
来源: Laya_社区 发布时间: 20190910
...ameLoop(1, this, this.onLoop) } /** * 播放动作对应的动画 * action String 动作名称 */ _proto.playAction = function(action){ //如果是重复的动作 不执行 if(this.action == action)return; this.action = action; this.body.play(0, true, this.action); } _proto.onLoop = function(){ //...
来源: Laya_社区 发布时间: 20160801