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

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

311. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 63%]

...e(); // 守护神 this.angel = new Sprite(); // 加载主体的背景 Laya.loader.load("res/island.png", Handler.create(this, function() { // 图片加载 var t = Laya.loader.getRes("res/island.png"); var tBall = Texture.create(t,866,190,548,305); var tTower = Texture.create(t,data.tower[towerLel].x...

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

312. 火狐浏览器上webgl异常 [ 63%]

...上下滑动了 怎样获取浏览器地址传过来的GET参数 请问下loader如何强制加载一个文件,避免浏览器的缓存 请问有人遇到oppo小游戏字体显示异常 问题状态 最新活动: 2018-05-08 17:35 浏览: 1864 关注: 2 人 jacksing888 • 2017-11-20 14:12 更新...

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

313. 粒子在webgl情况和canvas情况存在显著差异,请看图 [ 63%]

...况下 颜色更接近设置的 (function() { var Stage = Laya.Stage; var Loader = Laya.Loader; var Particle2D = Laya.Particle2D; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var sp; (function() { // 不支持WebGL时自动切换至Canvas Laya...

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

314. list加载动画的时候会错乱 [ 63%]

...动画失败 小游戏项目 加载有中文的json文件 报错 请问下loader如何强制加载一个文件,避免浏览器的缓存 请问一下怎样动态加载prefab laya怎么跨域加载图片 问题状态 最新活动: 2017-06-28 15:44 浏览: 1235 关注: 2 人

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

315. 微信小游戏中不能加载proto文件 [ 63%]

...valid url "res/protobuf/Login.proto"   具体代码: (function () { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; console.log("!____________________________________")  var ProtoBuf = Browser.window.protobuf;  // Laya.init(550, 400);  ProtoBuf.load("res/proto...

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

316. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 63%]

....core.js:1410)     at ResInfo.__proto.event (laya.core.js:1166)     at LoaderManager.__proto._endLoad (laya.core.js:14880)     at Loader.onLoaded (laya.core.js:14850)     at EventHandler.__proto.runWith (laya.core.js:1409)     at Loader.__proto.event (laya.core.js:1166)     at Loader.__p...

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

317. 打包百度小游戏不能播放声音?是api不支持 还是发生了改变 或者格式问题? [ 63%]

...红框内的修改  if (Browser.onMiniGame){ console.log(1); tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ console.log(2); tSound=new soundClass(); tSound.load(url); if (Browser.onMiniGame){ Loader.cacheRes(url,tSound); } }; 2个if判断...

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

318. Cannot read property 'displayObject' of null [ 63%]

...,获取的Laya.state为null 获取unity导出模型Rigidbody为null Load.loader.getRes返回都是Null 问题状态 最新活动: 2018-07-16 11:45 浏览: 1577 关注: 2 人 steven chan • 2018-07-16 12:05 谢谢

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

319. 如何用代码控制panel的vscroll滚动幅度 [ 63%]

...ueying 赞同来自: package { import laya.display.Sprite; import laya.net.Loader; import laya.ui.Panel; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(600,600); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,...

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

320. discard property,please use transform's property instead [ 63%]

...耗性能         directionLight.shadowPCFType = 3;         Laya.loader.create([             "res/plane.lh",             "res/LayaMonkey.lh"         ], Laya.Handler.create(this, onComplete));         var _quaternion = new Laya.Quaternion();         Laya.timer.frameLoo...

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