大约有 1,587 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0045 秒)
Laya_社区(1114) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(52) Laya3.0_api(11) Laya2.0_api(2)
...在fairy的GUI实例化之前导入字体,就可以正常显示 { url: 'res/font/Symbol.ttf', type: Loader.TTF } 这里特别说明 1.有些ttf特别的大,所以最好是自己做一个ttf 比如数字专门使用的 这样会小很多 具体制作方式可以百度 做出来大概2到3kb 2.编...
来源: Laya_社区 发布时间: 20180119
...MLIframeElement(); Laya.stage.addChild(iHtml); iHtml.href="res/html/test.html"; 或者也可以将htmlDivElement与气泡的图片在同一个父容器下,每条信息就是创建一个srprite容器!其他方式也可以实现! 2017-07-10 0 2 分享 微博 QZONE 微信 为...
来源: Laya_社区 发布时间: 20170710
...poolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ Laya.Animation.createFrames([swimpoorpath01,swimpoorpath02],"swimpoolani"); Laya.stage.addChild(this.swimpoolani); this.swimpool...
来源: Laya_社区 发布时间: 20190805
...怎么设置呢? 付代码 : var ball_skin = new Laya.Sprite().loadImage("res/basketball.png"); ball_skin.pivot(ball_skin.width / 2, ball_skin.height / 2); this.ball = Matter.Bodies.circle(0, -100, 34, { layaSprite: ball_skin, // 绑定一个laya的Sprite, 不能用render.sprite density:...
来源: Laya_社区 发布时间: 20170704
...n Action() { init(); } private function init():void { Laya.loader.load("../res/zy/zy.json",Handler.create(this,onLoadedSource),null,Loader.ATLAS); } private function onLoadedSource():void { roleAni = new Animation(); playActions(); } 2、你打包图集的时候,.json文件的prefix键是没有...
来源: Laya_社区 发布时间: 20170821
..._23.png"], "fish_live_16"); //播放不正常 Laya.Animation.createFrames("res/atlas/fish/fish_16.json", "fish_live_16"); 2017-09-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来...
来源: Laya_社区 发布时间: 20170908
...scaleModel = "full"; // DebugTool.init() //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad() { Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function o...
来源: Laya_社区 发布时间: 20180627
...入了 } } // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 完整项目请见...
来源: Laya_社区 发布时间: 20170725
... //设置版本控制类型为使用文件名映射的方式 ResourceVersion.type = ResourceVersion.FILENAME_VERSION; //加载版本信息文件 ResourceVersion.enable("version.json", Laya.Handler.create(this, LoadRes)); 这些档案变成这样 filena...
来源: Laya_社区 发布时间: 20181127
...0, 0); var translate = new Laya.Vector3(0, 0, 0); Laya.Sprite3D.load("res/LayaScene_gamescene/Conventional/chest01.lh", Laya.Handler.create(this, function(sp:Laya.Sprite3D):void { console.log("111111111111111111111") var target: Laya.Sprite3D = scene3d.addChild(sp) as Laya.Sprite...
来源: Laya_社区 发布时间: 20191206