大约有 908 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)
Laya_社区(631) Laya3.0_api(68) Laya2.0_api(57) laya_api(53) Laya2.0_文档(50) Laya3.0_文档(28) Laya2.0_示例(11) Laya_示例(10)
...300,300,"#ffffff"); s.graphics.setAlpha(1); addChild(s); var img:Image = new Image("a.png"); s.addChild(img); //方案二: var s:Sprite = new Sprite(); s.graphics.alpha(0.3); s.graphics.drawRect(0,0,300,300,"#ffffff"); s.graphics.alpha(1); addChild(s); var img:Image = n...
来源: Laya_社区 发布时间: 20180209
... { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr....
来源: Laya2.0_文档 发布时间: 20210714
... { var url:String = "../Res/Images/Role1/00011208_"+ index.toString() +".bmp"; arr.push(url); } Laya.loader.load(arr,Handler.create(this,LoadComplated)); } ...
来源: Laya_社区 发布时间: 20170918
poly组件是各种坑 前面我在image下做了N个poly不过很多有复制<旋转>,poly只要旋转过点击就无效. 后面改了下只复制不旋转点击是有效果了,结果当我给每个poly命名了断点下去看了下这个image下的child数量居然是0,我这张image下...
来源: Laya_社区 发布时间: 20170227
Sprite的loadImage和Image的skin的区别 手上做的项目涉及的资源会很多, 所以打算一些资源只有用到的时候在加载并且不缓存,但发现如果用Sprite的loadImage加载过的资源通过 通过Laya.loader.getRes可以获取到 说明被缓存了,但用Image的sk...
来源: Laya_社区 发布时间: 20191120
UI相关问题 LayaAir引擎 Image 的 texture 和skin 的区别 如下图 :556-557行的功能和559-562行有什么区别,我项目中556-557写不行,必须559-562写才行!不解 附件 : --> 2018-02-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20180228
...。 __proto.parseImgForBuffer = function(url,data){ var _this = this; var image; var onload = function () { // image.onload = null; // image.onerror = null; // var data = Laya.Texture2D._parse(image); // data._url = "sdfasf" // _this.onLoaded(data); img=HTMLImage.create(image.width,image.height,1); ...
来源: Laya_社区 发布时间: 20210809
....0编辑模式下 资源树组件类型默认为sprite。可以改成默认image吗 2.0编辑模。式下 资源树组件类型默认为sprite。可以改成默认image吗。 想用image的属性。或者有快捷方法一次全部修改组件类型吗。一个个改太麻烦了 附件 : --> 2019...
来源: Laya_社区 发布时间: 20190815
...做的游戏公告功能,跑马灯效果 import View = Laya.View import Image = Laya.Image import HTMLDivElement = Laya.HTMLDivElement import Sprite = Laya.Sprite import Box = Laya.Box /** 公告栏 */ export default class Notice extends View { /** 滚动区域 */ hornBox: Box /** html对象 */ ht...
来源: Laya_社区 发布时间: 20180314
... { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr....
来源: Laya2.0_文档 发布时间: 20210714