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

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

271. 位图字体的制作与使用(JavaScript-LayaAir基础篇(JS)-文本) [ 59%]

...体中,没放空格,最好设置一个空格宽度 mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(mFontName,mBitmapFont); var txt = new Laya.Text(); txt.text = "asdfghjk"; //设置宽度,高度自动匹配 txt.width = 250; //自动换行 txt.wordWrap = true; txt.align = "center"; ...

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

272. 微信小游戏利用开放域好友关系链做排行榜 [ 58%]

...         sprite.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height);                  // console.log("再次往开放域发请求");                 // openDataContext.postMessage({                 //  cmd:2,     ...

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

273. 求助,屏幕旋转后滚动条没有跟随旋转 [ 58%]

...g/vscroll.png"; this.sp_wanfa.addChild(panel); let t = new Laya.Label(); t.width = 638; t.fontSize = 25; t.wordWrap = true; t.color = "#976A4F"; t.overflow = "scroll" t.leading = 20; t.text =WanF.xinxi; panel.addChild(t); } public static xinxi = ` 信息,指音讯、消息、通讯系统传输和...

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

274. HTML文本 · LayaAir3.0文档 · LAYABOX [ 58%]

...中设置字体、颜色不同3.3 获取html文本的实际宽高(contextWidth、contextHeight)3.4 设置文本的水平居中对齐(align需要和width配合使用)3.5 实现超链接3.6 实现html页面跳转3.7 为HtmlDivElement设置行间距,leading属性,注意,必须设置valign=’...

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

275. 资源加载 · LayaAir3.4 · 引擎文档 · LAYABOX [ 57%]

...去下载Meta(json)文件 [key: string]: any; } TextureConstructParams { width?: number, height?: number, format?: TextureFormat, mipmap?: boolean, canRead?: boolean, sRGB?: boolean, } TexturePropertyParams { wrapModeU?: number, wrapModeV?: number, filterMode?: FilterMode, anisoLevel?: number, premu...

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

276. HTMLDivElement 中contextWidth计算有问题 [ 55%]

HTMLDivElement 中contextWidth计算有问题 HTMLDivElement 设置一个css文本后调用contextWidth获取实际宽度是0 /** * @private * @param out */ override public function _addToLayout(out:Vector.<ILayout>):void { layout(); //!_style.absolute && out.push(this); } 这个重...

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

277. laya.ui.WXOpenDataViewer_API3.0 [ 55%]

...ents customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX ...

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

278. 微信小游戏加载资源问题 [ 54%]

...r ts = Laya.Laya.stage._canvasTransform.identity(); ts.scale((Laya.Browser.width / Laya.Render.canvas.width / Laya.Browser.pixelRatio), Laya.Browser.height / Laya.Render.canvas.height / Laya.Browser.pixelRatio); } static wxinputFocus(e) { var _inputTarget = Laya.Input['inputElement'].target; if (_in...

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

279. laya.ui.AdvImage_API3.0 [ 54%]

...ents customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray group height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation s...

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

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

...enderOrder = tJsonData.renderorder;             _mapW = tJsonData.width;             _mapH = tJsonData.height;                          _mapTileW = tJsonData.tilewidth;             _mapTileH = tJsonData.tileheight;                        ...

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