大约有 914 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0050 秒)
Laya_社区(692) Laya2.0_文档(89) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(25) Laya3.0_api(19) laya_api(1) Laya2.0_api(1)
图集动画必须要有这一段代码吗 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); 2017-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来...
来源: Laya_社区 发布时间: 20170925
...; //设置背景颜色 Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这...
来源: Laya_社区 发布时间: 20180129
...这个文件有错 如何给untiy模型导出增加自定义属性值 Laya.loader.create 不会反馈失败状态跟描述不符合 Laya2.0 的2d如何编写自定义shader 自定义组件如何实现图片资源拖动获取路径 自定义场景类型 问题状态 最新活动: 2020-07-28 10:43 浏...
来源: Laya_社区 发布时间: 20200720
...点击热区 求教,按钮的光影闪烁效果是如何实现的 Laya.loader.create 不会反馈失败状态跟描述不符合 通过AnimatorState为Animator添加多个播放状态islooping属性会被覆盖 1.7.19.1 beta 背景音乐在舞台失焦和静音状态下可能导致的无法播放...
来源: Laya_社区 发布时间: 20180122
... addPic(str:String, x:int, y:int) { picUrl = str; picX = x; picY = y; Laya.loader.load(picUrl, Handler.create(this, showBgImg)); } private function showBgImg():void { pic = new Image(); pic.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } } Main.as packa...
来源: Laya_社区 发布时间: 20170522
...tos/login.proto", "protos/gm.proto", "protos/samplegame.proto", ]; Laya.loader.load(this._proto_files,Laya.Handler.create(this,this.OnProtoLoaded),null, Laya.Loader.TEXT); 打包的时候在release/web下面有了protos/loginxxxxxxxx.proto这样的文件 然后运行的时候,报了这样...
来源: Laya_社区 发布时间: 20180319
....alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load("assets/bg.jpg", Handler.create(this, loadCompleteHandler)); } private function loadCompleteHandler():void { var bg:Image = new Image("assets/bg.jpg"); Laya.stage.addChild(bg); }这张图在三星平板上可以...
来源: Laya_社区 发布时间: 20171124
...ar step = 0; Laya.init(1285, 727, Laya.WebGL); var stage = Laya.stage; var loader = Laya.loader; stage.bgColor = "#00ffff"; stage.alignH = "center"; stage.alignW = "middle"; stage.scaleMode = "showall"; loader.load("../../res/guide/crazy_snowball.png", Handler.create(this, init)); function init(e) {...
来源: Laya_社区 发布时间: 20171031
...a.stage.on(Laya.Event.CLICK, this, () => { Laya.loader.load("HallAni/star.part", Laya.Handler.create(this, (settings) => { let Particle2D = Laya.Particle2D; // 创建 Particle2D 实例 ...
来源: Laya_社区 发布时间: 20190808
...exture2d的getPixels()中不能正确读取到alpha所对应的坐标 Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture texture2D 设置 wrapModeU 与 wrapModeV 无效 (关于素材要求的问题) Texture2D的getPixels()始终为空 Texture,和Texture2D如何互...
来源: Laya_社区 发布时间: 20181031