大约有 277 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
Laya_社区(175) Laya2.0_api(58) Laya3.0_文档(21) Laya2.0_文档(16) laya_api(3) Laya3.0_api(2) Laya2.0_示例(1) Laya_示例(1)
...览: 1820 关注: 2 人 jison_ailin • 2017-05-25 10:21 在ide里面资源comp文件夹,点击右键打开所在目录是laya/assets/comp cuixueying • 2017-05-25 10:23 那个不是你项目的资源目录,是IDE的,你的资源目录在bin下 jison_ailin • 2017-05-25 14:02 @cuixueying:那...
来源: Laya_社区 发布时间: 20170524
...ya.init(600,400, WebGL); Laya.stage.bgColor = "#000000"; Laya.loader.load("comp/button.png", Handler.create(this, this.onLoaded)); } private onLoaded(): void { this.begin = new Begin(); Laya.stage.addChild(this.begin); } } new GameMain(); 2018-08-29 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180829
...0,WebGL); Laya.loader.load([GameConfig.getAssetsFile("comp")],Handler.create(this, onComplet)); } private var imag:Image; private function onComplet():void { imag=new Image(...
来源: Laya_社区 发布时间: 20170510
...{ //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/...
来源: Laya2.0_文档 发布时间: 20210714
...anvas这块的功 构建App 设置横竖屏错误与黑屏问题 lose skin comp/button.png 错误,全部按照UI案例来的呀 问题状态 最新活动: 2019-02-19 11:47 浏览: 2814 关注: 2 人
来源: Laya_社区 发布时间: 20190111
...TER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load([{url:"image/comp.json", type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { createList(); createItems(); createLoading(); _list.addChild(_loadingBg); Laya.stage.addChild(_list); } protected function...
来源: Laya_社区 发布时间: 20170323
...景编辑器中,如图7所示,(*注意:本例中的button组件在comp目录下*)。  (图7) **步骤二**:将制作的缩放动效模板(scale.efc)拖拽到Button组件下,如动画8所示。 (图8) **步骤三**:为实现居中缩放效...
来源: Laya2.0_文档 发布时间: 20210715
...擎需要的资源 //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); Laya.loader.load ( [ { url: "res/atlas/comp.atlas" , type: ...
来源: Laya_社区 发布时间: 20180513
...你可以使用layaAir IDE新建一个项目,在项目中的laya/assets/comp目录下可以看到每个组件的皮肤和命名的定义 参考:UI组件资源命名规则 第三个问题: 你可以考虑用动态遮罩实现图片进度条显示,在IDE下制作p...
来源: Laya_社区 发布时间: 20160729
...a.stage.bgColor='#ffffff'; Laya.stage.addChild(new Laya.Image('comp/img/img1.png')); Laya.timer.once(1000, this, this.delayShow); } delayShow() { let canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); let str = can...
来源: Laya_社区 发布时间: 20230419