大约有 139 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
..../res/ui/input (3).png", "../../res/ui/input (4).png"]; Laya.loader.load(skins, Handler.create(this, onLoadComplete)); //加载资源。 })(); function onLoadComplete() { for (var i = 0; i < skins.length; ++i) { v...
来源: Laya_社区 发布时间: 20190814
...(500,500);//初始化引擎 var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对...
来源: Laya_社区 发布时间: 20180529
... = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.loader.getRes("res/en_bar.png"); break; case Hp.HP_TYPE_SPEED: texture2 = Laya.loader.getRes("res/hp_bar.png"); break; } th...
来源: Laya_社区 发布时间: 20160803
如何把加载好的二进制数据转成Texture? 通过Loader加载好文件,得到Byte,怎么创建Texture? 2017-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 如果你...
来源: Laya_社区 发布时间: 20170502
...5:59 @155*****924:需要些时间的 155*****924 • 2019-05-16 15:16 Laya.loader.create("model/role/1/model.lh", Laya.Handler.create(this, this.OnComplete)); private OnComplete():void { let sprite:Laya.Sprite3D = Laya.loader.getRes("model/role/1/model.lh"); this._scene.addChild(...
来源: Laya_社区 发布时间: 20190516
...还有 我只加载动画使用的资源好想不可以?还有使用Laya.Loader的方式能不能加载ani文件? 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)...
来源: Laya_社区 发布时间: 20170926
...G * (this.skins.length / this.COLUMNS - 1) - this.BUTTON_HEIGHT) / 2; Laya.loader.load(this.skins).then(() => { this.onUIAssetsLoaded(); }); } private onUIAssetsLoaded(e: any = null): void { for (var i: number = 0, len: number = this.skins.length; i < len; ++i) { var btn: Laya.Button = this.cr...
来源: Laya3.0_文档 发布时间: 20251010
... size = 200, x = 200, y = 200; var sp = new Laya.Sprite(); var text = Laya.loader.getRes("res/bar.png"); var w = size, h = size/5; sp.pivot(w/2, h/2); sp.graphics.fillTexture(text, 0, 0, w, h); partA = Matter.Bodies.rectangle(x, y, w, h, { isStatic:true, layaSprite:sp, }); sp = new Laya.Sprite(); ...
来源: Laya_社区 发布时间: 20180625
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load("res/ui/refreshList/ani/refresh.png", Handler.create(this, function(){ this.initView(); })); } initView(){ // 加载并添加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this....
来源: Laya2.0_示例 发布时间: 20251130
...AStarMap.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { //初始化3D场景 this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/TerrainScene/XunLongShi.ls")); //删...
来源: Laya_示例 发布时间: 20251130