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

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

261. Panel滚动条滑块位于最下方 [ 72%]

..."}],Handler.create(this,onCom)); } private function onCom():void { var img:Image=new Image(); img.skin="bg2.png"; panel=new Panel(); panel.vScrollBarSkin="comp/vscroll.png"; panel.width=300; panel.height=300; Laya.stage.addChild(panel); panel.addChild(img); panel.vScrollBar.min=1; panel.vScrollBar.m...

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

262. 在UI类里调用启动类的静态函数失败了 [ 72%]

..."; Laya.loader.load([ { url: "res/beijing/beijing2.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded), Laya.Handler.create(this, this.onLoading)); } static aaa():...

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

263. IOS的safari浏览器打开h5项目demo,游戏场景偏移(附件有完整demo) [ 72%]

...kage { import laya.display.Stage; import laya.display.Text; import laya.ui.Image; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); Laya.stage.bgColor = "#235615"; //设置适配模式 Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.AL...

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

264. 图片跨域加载问题如何解决 [ 72%]

图片跨域加载问题如何解决 直接使用Laya.Image去加载跨域图片的时间,如报跨域错误。请问这问题如何解决啊?(TypeScript) 2017-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个...

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

265. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 72%]

...出来同角度不用于遮罩的扇形显示是正常的 let node: Laya.Image = new Laya.Image('c1.png'); node.pos(300, 300) Laya.stage.addChild(node); var sp: Laya.Sprite = new Laya.Sprite(); node.mask = sp; sp.pos(50, 50); var sp2: Laya.Sprite = new Laya.Sprite(); sp2.pos(300, 500); Laya.stage.ad...

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

266. 有没方法可以读到图集里面的文件大小信息? [ 72%]

...什么 如果用的是sprite 只能用getbounds()去获取 如果用的是image 直接就可以获取图片的宽高 如果两种方法都不想用的话 那只能自己去加载json文件了 2018-01-29 0 1 分享 微博 QZONE 微信 qian 赞同来自: http://layaair.ldc.layabox.com/api/?category=Co...

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

267. 用LayaAir引擎解析Tiled Map地图(TypeScript-2D进阶篇(TS)-扩展模块) [ 72%]

...制Tiled资源 ##### 只是存为json文件还不够,我们还要更改image绝对路径为相对路径。 我们通过IDE,打开刚刚保存的`orthogonal.json`,搜索关键字`"image"`我们会发现默认的image路径位于Tiled安装目录中。如图4所示。 ![图4](img/4.png) (图4) #...

来源: Laya2.0_文档 发布时间: 20210715

268. 物理Bodies绑定Laya.Sprite [ 71%]

...aRender.run(render); // Render 启动 var gun_skin = new Laya.Sprite().loadImage("images/qiang_001.png"); gun_skin.scale(50, 50); gun_skin.pivot(gun_skin.width / 2, gun_skin.height / 2); gun = Bodies.rectangle(150, 150, 50, 50, { frictionAir: 0.5, //空气摩擦力 density: 0.68, // 密度 layaSprit...

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

269. UI-FontClip [ 71%]

...odule laya{ import Stage=Laya.Stage; import FontClip=Laya.FontClip; import Image=Laya.Image; import WebGl=Laya.WebGL; export class Font_Clip{ private TestClipNum:string="res/comp/fontClip_num.png"; private _ClipNum:string="res/comp/fontClip_num.png"; private _ClipNum1:string="res/comp/fontClip_num.p...

来源: Laya2.0_示例 发布时间: 20251209

270. 微信小游戏加载资源问题 [ 71%]

....Laya.loader.load(fileUrl, callBack); } else { if (fileType == Laya.Loader.IMAGE || fileType == Laya.Loader.SOUND) MiniFileMgr.downOtherFiles(fileUrl, callBack, fileUrl, true, false); else MiniFileMgr.downFiles(fileUrl, encoding, callBack, fileUrl, true, fileType, false); } } static copyFile(tempFil...

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