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

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

521. 粒子在webgl情况和canvas情况存在显著差异,请看图 [ 48%]

...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.URL.basePath += "../../"; Laya.loader.load("r...

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

522. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 48%]

...text.text="لحسن نهر123"; text.pos(100, 100); text.width = 500; text.height = 500; Laya.stage.addChild(text); }   参考该贴加载字体方式: https://ask.layabox.com/question/332 附件 : --> LayaFontTest.zip 2018-07-05 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有...

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

523. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 48%]

...de(); let texture:Laya.Texture2D = new Laya.Texture2D(544,960);//p.width,p.height this.texture = texture; this.refreshCamera(); //在U方向上使用WARPMODE_CLAMP // texture.format = Laya.TextureFormat.ASTC10x10 texture.wrapModeU = Laya.BaseTexture.WARPMODE_CLAMP; //在V方向使用WARPMODE_REPEAT ...

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

524. 在Laya中使用Matter.js的最简示例 (JS) [ 47%]

...是matter自带的渲染器 2、必须执行 Laya.init(stageWidth, stageHeight, WebGL);否则会报错:TypeError: Cannot read property 'frameLoop' of nullvar Browser = Laya.Browser; var WebGL = Laya.WebGL; var Matter = window.Matter; var LayaRender = window.LayaRender; var stageWidth = 800; var s...

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

525. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 47%]

...= new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture; image.width = videoTexture.video.videoWidth; image.height = videoTexture.video.videoHeight; im...

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

526. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 47%]

...      _mapW = tJsonData.width;             _mapH = tJsonData.height;                          _mapTileW = tJsonData.tilewidth;             _mapTileH = tJsonData.tileheight;                          _width = _mapTileW * _mapW;          ...

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

527. 示例 骨骼动画换装 加不上点击事件 [ 45%]

... ["goblin", "goblingirl"]; (function () { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); })(); function startFun() { mAniPath = "res/spine/spineRes2/goblins.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLE...

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

528. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 45%]

...t.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = new Handler(this, updateItem); Laya.stag...

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

529. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 42%]

...t.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = new Handler(this, updateItem); Laya.stag...

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

530. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 42%]

....TextFormat;     import flash.utils.Timer;       [SWF(width = "1000", height = "618", backgroundColor = "0x0", frameRate = "30")]       public class iLoader extends Sprite     {         public static var PATH:String = "";           public static var VCM:Function;           pu...

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