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

大约有 908 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)

211. 打包之后TEXT可以显示但是 加载其他资源时白屏 [ 76%]

...ge.screenMode = "horizontal";  var asset = []; asset.push({ url: ["../res/image/bg.png"], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg....

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

212. 1.7.18beta少方法? [ 76%]

...Context.bindTexture(gl, WebGLContext.TEXTURE_2D, _source); //由于HTML5中Image不能直接获取像素素数,只能先画到Canvas上再取出像素数据,再分别texSubImage2D四个边缘(包含一次行列转换),性能可能低于直接texSubImage2D整张image, //实测76*59的image...

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

213. Cannot read property 'load' of null [ 76%]

...private init() { } private skins: Array<string>; private mapImg:Laya.Image; private constructor() { } public GetMap():Laya.Image { if(this.mapImg==null) { this.mapImg=new Laya.Image(); } return this.mapImg; } public LoadMapResource() { this.skins=[ "res/img/map/1.jpg", "res/img/map/2.jpg", "re...

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

214. 关于Button Skin 切图问题 [ 76%]

...应该能让切图轻松一些把   mport os import math from PIL import Image  # if png pngs=[] maxWith = 0 maxHeight = 0 for idx in range(1,4): fname = os.path.join( os.path.curdir, "btn_{0}.png".format(idx)) if os.path.exists( fname) : im=Image.open( fname) pngs.append( im) maxWith = max( maxW...

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

215. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 76%]

...ar Stage = Laya.Stage; var Button = Laya.Button; var Clip = Laya.Clip; var Image = Laya.Image; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var buttonSkin = "res/ui/button-7.png"; var clipSkin = "res/ui/num0-9.png"; var bgSkin = "res/ui/coutDown.png"; var counter, currFrame, controller; (func...

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

216. 报无法找到资源,未升级ide之前不报错 [ 76%]

...void { Laya.loader.load( //先加载本场景要用的 ["resources/UI/image.png", "resources/UI/progress.png", "resources/UI/progress$bar.png","resources/UI/images/dsgame/banner2.jpg"] ).then(() => { let resArr: Array<any> = [ { url: "resources/U...

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

217. destroy()销毁精灵不起作用 [ 76%]

...on动画销毁之后依然占用内存 如何加载图集、销毁图集(images.atlas,images.json,images.png),如何获取图集里面的小图 问题状态 最新活动: 2020-05-27 15:24 浏览: 1342 关注: 3 人

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

218. Native(android)下创建二维码并显示在页面上 [ 76%]

...if (base64OfQrCode.length>0) {             let img:Laya.Image = new Laya.Image();             img.skin = "data:image/png;base64,"+base64OfQrCode;             img.pos(100, 300);             Laya.stage.addChild(img);         }     }      /...

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

219. textInput的单行输入&多行输入(ActionScript-LayaAir基础篇(AS3)-文本) [ 76%]

...下TextInput这个类的API。 Laya.ui.textInput中所有的API参数: ![image.png](http://ldc.layabox.com/uploadfile/image/20170222/1487736122132869.png) 这里我们设置文本的单行输入和多行输入,单行输入只能在一行内输入,多行可以通过回车在上一行未满的...

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

220. ios打包单机版本问题,显示conchShader找不到和Status bar could not find cached time string image. 然后直接黑屏!!!!!! [ 76%]

...显示conchShader找不到和Status bar could not find cached time string image. 然后直接黑屏!!!!!! layabox[4357:2764240] ==JSERROR: exception info: [ReferenceError: Can't find variable: ConchShader] at line 21042 layabox[4357:2763988] Status bar could not find cached time string i...

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