• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 573 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0049 秒)

231. 引擎 TiledMap 居然不支持图块翻转 [ 74%]

...                if (this.x < 0 || this.x > this._map.viewPortWidth || this.y < 0 || this.y > this._map.viewPortHeight) {                     this.hide();                 }                 else {                     this.show();           ...

来源: Laya_社区 发布时间: 20220627

232. laya.resource.nativecontext..context2d.CONTEXT2D_FUNCTION_ID_API3.0 [ 74%]

...0; right: 0; z-index: 1000; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media (max-width: 767px) { #laya_content { overflow: auto; margin: 0px au...

来源: Laya3.0_api 发布时间: 20230115

233. 基础文本 · LayaAir3.0文档 · LAYABOX [ 74%]

...t;/li> <li>橘子</li> 定义列表 <img src='image_url' width = 200 height=100/> <img src='atlas/comp/image.png' width = 200 height=100/> 显示一张图片,还可以使用百分比指定图片的大小 <a href='xxx'>link text</a> <a href='www.layabox.com...

来源: Laya3.0_文档 发布时间: 20230830

234. 请问下,2.0子域工程如何创建UI显示在shareCanvas上 [ 74%]

...er.window.wx.createImage(); image.onload = function () { console.log(image.width, image.height); context.drawImage(image, 0, 0); }; 绘制到sharecanvas 一样,我直接创建scene和view 都没有效果 2018-11-22 0 0 分享 微博 QZONE 微信 186*****371 赞同来自: 现在解决了没,我...

来源: Laya_社区 发布时间: 20181122

235. 分享一下自己的屏幕适配方案 [ 74%]

... 废话不多说 上代码 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL nWidth:number; nHeight:number; ImgX:number; ImgY:number; Img:Laya.Image =new Laya.Image(); this.nWidth =this.bg.width; //背景图宽 this.nHeight =this.bg.height;//背景图的高 this.Img.x =0; this.Img.y =0; this.Img.url ="...

来源: Laya_社区 发布时间: 20181123

236. HTMLDivElement img 标签问题 [ 74%]

...img 标签问题 做聊天图文混排 <img src='image/chat/face15.png' width='30px' height='30px'></img> 原图为81*81,第一次发,显示是81*81,第2次发就是30*30 图片非要预加载一次吗 附件 : --> 2017-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

来源: Laya_社区 发布时间: 20170329

237. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 73%]

...据IDE设置初始化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya["Physics"] && Laya["Physics"].enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode = GameConfig.sc...

来源: Laya2.0_文档 发布时间: 20210714

238. Laya下的图片上传示例(完整版) [ 73%]

...t("img"); //设置file样式 file.style="filter:alpha(opacity=0);opacity:0;width:200px;height:100px;background:url(b1.png) no-repeat center;cursor:pointer;"; file.type ="file";//设置类型是file类型。 file.size ="30"; file.accept="image/png/jpg";//设置文件的格式为png; file.style.posi...

来源: Laya_社区 发布时间: 20190129

239. 精灵 · LayaAir3.0文档 · LAYABOX [ 73%]

...atlas/comp/image.png"); //纹理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.sprite.y = Laya.stage.height/2; this.sprite.size(512, 313); //大小 this.sprite.widt...

来源: Laya3.0_文档 发布时间: 20240528

240. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 73%]

...(_colorTex); _colorSpr.cacheAs = "bitmap"; _colorSpr.pos((1024 - _colorTex.width) >> 1, (768 - _colorTex.height) >> 1); _colorSpr.size(_colorTex.width, _colorTex.height); Laya.stage.addChild(_colorSpr); _initPixelCount = getPixel(_colorTex); addEvent(); } private function addEvent():void...

来源: Laya_社区 发布时间: 20180302