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

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

291. 在微信小游戏真机wx.onShow和wx.onHide中的currTimer的问题 [ 59%]

在微信小游戏真机wx.onShow和wx.onHide中的currTimer的问题  public function Main() { MiniAdpter.init(); MiniAdpter.window.wx.onShow(_onShowWX); MiniAdpter.window.wx.onHide(_onHideWX); } private function _onShowWX(res:*):void { console.log("wx.onShow:",res); console.log(Laya.timer.currTi...

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

292. 截屏无法实现 [ 59%]

...         isLoad = true;         gv = gameView;     }     public static void screenshot() {         // 获取屏幕         View dView = gv;         dView.setDrawingCacheEnabled(true);         dView.buildDrawingCache();         Bitmap bmp = dView.getDra...

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

293. laya.ui.Box [ 59%]

...| Frames No Frames BoxProperties | Methods | Events Packagelaya.uiClasspublic class BoxInheritanceBox Component Sprite Node EventDispatcher ObjectImplements IBoxSubclasses LayoutBox, List, Panel, Tree, UIGroup, View, ViewStack Box 类是一个控件容器类。 Public Properties Hide Inherited P...

来源: laya_api 发布时间: 20170929

294. 有时候加载一大堆资源的时候某个个别图片资源加载失败如何处理 [ 59%]

... @return 此 LoaderManager 对象本身。          */         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 { 你可以根据加载...

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

295. Laya发布安卓接入穿山甲联盟sdk在安卓9.0版本以上无法运行 [ 59%]

...邀请: 与内容相关的链接 提交 2 个回复 小邦 赞同来自: public static String getProcessName(Context context) { ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); for (ActivityManager.RunningAppProcessInfo processInfo : manager.getRunningA...

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

296. scaleMode设为full时怎么pc浏览器跟平板上效果不一样? [ 59%]

scaleMode设为full时怎么pc浏览器跟平板上效果不一样? public function Main() { Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.bgColor = "#232628"; Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Laya.stage.alignH = Stage.A...

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

297. 点击list的时候触发的e.target永远是被点击的item? [ 59%]

...请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: public function TestView() { var arr:Array=; for(var i:int=0;i<10;i++) { arr.push({my_clip:i}); } my_list.array=arr; my_list.renderHandler=new Handler(this,onRender); } private function onRender(cell:Box,index:int):void { /...

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

298. 小游戏对读取json文件有要求吗?为啥说读取json文件错误啊 [ 58%]

...)://该方法示例仅做参考,视项目情况自行修改或拓展 public static var getUrlAndEncode:Function = function(url:String,type:String):String { if (url.indexOf(".fnt") != -1 || url.indexOf("xxx.json") != -1) { return "utf8"; } else if (type == "arraybuffer") { return ""; } return "...

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

299. laya.physics.PhysicsDebugDraw [ 58%]

...s PhysicsDebugDrawProperties | Methods | Events Packagelaya.physicsClasspublic class PhysicsDebugDrawInheritancePhysicsDebugDraw Sprite Node EventDispatcher Object 物理辅助线,调用PhysicsDebugDraw.enable()开启,或者通过IDE设置打开 Public Properties Hide Inherited Public Propert...

来源: Laya2.0_api 发布时间: 20190513

300. 使用layacmd资源版本管理时,与res相同目录的未打包的大图片改怎么处理呢 [ 57%]

...前缀 * @param originURL 源路径 * @return 格式化后的新路径 */ public static function addVersionPrefix(originURL:String):String { if (manifest && manifest["resource/"+originURL]) return manifest["resource/"+originURL] + "/resource/" + originURL; retur...

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