大约有 337 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
Laya_社区(226) Laya2.0_文档(37) Laya2.0_api(21) Laya3.0_api(21) laya_api(19) Laya3.0_文档(8) Laya2.0_示例(3) Laya_示例(2)
...ox 加载url 图片 //(使用本地文件)这个是好使的 //ape.loadImage("../../laya/assets/monkey/monkey0.png"); //此url是用node.js 搭的用浏览器测试能看到图片。好使。 //下面代码不好使。请大家帮看看。我是小白,初学者,见谅。 var img_url:String =...
来源: Laya_社区 发布时间: 20170609
...mponent display object nodes (container objects or display objects without image resources), specifies whether the mouse events penetrate this object's collision detection. `true` means the object is penetrable, `false` means it is not penetrable. * When penetrable, the engine will no longer detect ...
来源: Laya_社区 发布时间: 20250825
...设置mask,会有毛边,有什么办法解决吗? let tmpMask: Laya.Image = new Laya.Image(); tmpMask.anchorX = 0.5; tmpMask.anchorY = 0.5; tmpMask.size(this.hexaSize.w, this.hexaSize.h); tmpMask.pos(v.x, v.y); tmpMask.loadImage(SKINS.HEXA_GRID_BG, 0, 0, this.hexaSize.w, this.hexaSize.h, Laya....
来源: Laya_社区 发布时间: 20200619
...与内容相关的链接 提交 4 个回复 daibao520 赞同来自: donloadImageTest: function (ss) { var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE, this, completeHandler); xhr.once(Laya.Event.ERROR, this, errorHandler); xhr.send("http://192.168.10.108:35553/re ... ot%3B, "", "get",...
来源: Laya_社区 发布时间: 20180201
...640*1038,900K 先创建一个img实例 class bitmapimg extends Laya.Image //2.0版本 这里区别为export default class bitmap extends Laya.Image { private szurl:string="" constructor(url:string){ super() this.onUrlChangeHandler(url); } protected onUrlChangeHandler(url:string):void ...
来源: Laya_社区 发布时间: 20181201
...s.bg_img.width = Laya.stage.width; this.bg_img.height = Laya.stage.height; Image使用skin修改显示,改变宽高时,会拉伸显示内容 2018-01-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 lzh1589300156 相关问题 sprite...
来源: Laya_社区 发布时间: 20180122
...log("当前选择的索引:" + index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public static HEI: number = 85; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Image(); this.addChild(th...
来源: Laya2.0_文档 发布时间: 20210715
...; i <= 2; i++) { let e = this.typeBox.getChildByName('btn' + i) as Laya.Image; console.log(e); e.on(Laya.Event.CLICK, this, this.onBtnClick); } 按钮事件 private onBtnClick(event:Laya.Event): void { let b = event.currentTarget as Laya.Image; consol...
来源: Laya_社区 发布时间: 20190802
...x.all ,没办法动态该皮肤地址啊 Laya_Aaron • 2018-05-29 20:03 image.sikn = " 地址" 就可以改。 Laya_Aaron • 2018-05-29 20:03 skin 东 • 2018-05-29 21:20 您好,我知道这个。我的意思是,原ui里面skin地址是:v1/v1.png, 我在未加载layaUI.max.all.j...
来源: Laya_社区 发布时间: 20180529
...而我的图片并没有2048这么大。。。。。 代码如下 var mask:Image = new Image(); mask.skin = "res/atlas/遮罩.png" mask.pos(0,0); _cloudSP.mask = mask; 附件 : --> 2017-12-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20171202