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

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

1061. 关于大量图片加载绘制后的内存暴增的疑问 [ 63%]

...理 public function Demo() { Laya.init(800,1000,WebGL); Stat.show(); Laya.stage.bgColor="#EEFFCC"; //预加载图集 Laya.loader.load("res/atlas/bag.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { sp=new Sprite(); Laya.stage.addChild(sp); //每隔0.05秒...

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

1062. TiledMap中的gridWidth|(块的宽度)是哪一部分啊? [ 63%]

...ap("res/tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height),Handler.create(this,onComplete)); } private function onComplete():void { // TODO Auto Generated method stub trace(tiledMap.tileWidth,tiledMap.tileHeight); }   2016-07-18 0 0 分享 微博 QZON...

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

1063. 关于event中只读属性touches,问题,求解 [ 63%]

...DemoTouch { public function DemoTouch() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; var txt:Text = new Text(); txt.text = "hello"; txt.color = "#FF00FF"; txt.width = 100; txt.height = 100; txt.x = 200; txt.y = 100; txt.fontSize = 50; txt.on("click", this, onFunc); Laya.stage.addChi...

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

1064. 微信头像显示错误 [ 63%]

...meStart.max.js:18041) at Timer.__proto._update (GameStart.max.js:17798) at Stage.__proto.render (GameStart.max.js:38093) 2018-01-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 185*****367 赞同来自: if (!tex...

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

1065. dialog 里的数据已经获取到了,也赋值了但是页面没跟新,addChild好像无效果 [ 62%]

... = new Laya.Sprite(); //添加到舞台上 console.log(self.foodBox); Laya.stage.addChild(foodBox); self.foodBox = fooddata; console.log(self.foodBox); 2018-12-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 X...

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

1066. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 62%]

... "res/atlas/clanwar_bg.jpg?" + Math.random();             Laya.stage.addChild(image);              var index:int = 0;             Laya.stage.timerLoop(1, this, function():void{index++;image.alpha = Math.sin(Math.PI*2*(index/24))})              var im...

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

1067. sprite做的按钮点击无反应? [ 62%]

...击无反应? 代码如下: var dialog_mc:Sprite = new Sprite(); Laya.stage.addChild(dialog_mc); var w:int = 110; var h:int = 40; var btn:Sprite = new Sprite(); btn.size(w, h); btn.graphics.drawRect((stageWd - w) * 0.5, (stageHt - h) * 0.5-50, w, h, "#FF7F50"); btn.graphics.fillText("确 定", (...

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

1068. 分享:Panel下动态修改子容器宽高并刷新显示! [ 62%]

...g';//设置panel的垂直滚动条,方便看出panel的滚动变化 Laya.stage.addChild(panel); var sp:Sprite=new Sprite();//panel的子容器sp sp.graphics.drawRect(0,0,500,1000,"#FF0000"); sp.size(500,1000); panel.addChild(sp); var btnAdd:Button=new Button();//点击按钮,动态添加sp的子...

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

1069. 同一类型光源互斥的问题报告 [ 62%]

...是我的全部测试代码: (function(){ Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(...

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

1070. 用tiledmap导出的json文件为何加载不成功? [ 62%]

...aya.TiledMap(); tiledMap.createMap("map/map.json",new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), new Handler(this, completeHandler)); function completeHandler(params) { console.log("brj laya h5 加载完成.."); }   2017-09-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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