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

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

601. UI-TextArea [ 75%]

...xtArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; var scaleFactor = Browser.pixelRatio; Laya.stage.addChild(ta); } })();module laya { import Stage = Laya.Stage; import TextArea = Laya.Te...

来源: Laya_示例 发布时间: 20260303

602. 文本-自动换行 [ 75%]

... = 40; txt.color = "#ffffff"; //设置文本为多行文本 txt.wordWrap = true; txt.x = Laya.stage.width - txt.textWidth >> 1; txt.y = Laya.stage.height - txt.textHeight >> 1; Laya.stage.addChild(txt); } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Br...

来源: Laya_示例 发布时间: 20260303

603. 音乐音效缓存 [ 75%]

...autoReleaseSound = false;/** * 音效播放后自动删除。  * @default true  */ public static var autoReleaseSound:Boolean = true; 2018-04-09 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sangya 相关问题 IOS系统内嵌H5游戏...

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

604. [LayaAir3]Laya3.0 中设置舞台背景透明无效 [ 75%]

...yaAir3]Laya3.0 中设置舞台背景透明无效  Laya.Config.isAlpha = true;   Laya.stage.bgColor = "none"; 附件 : --> 2024-03-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_XS 赞同来自: laya...

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

605. laya.components.AnimatorController2D_API3.0 [ 75%]

...esource.lock Defined in laya/resource/Resource.ts:103 是否加锁,如果true为不能使用自动释放机制。 Optional name name: string Inherited from Resource.name Defined in laya/resource/Resource.ts:105 名称。 url url: string Inherited from Resource.url Defined in laya/resource/Resource...

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

606. UI-TextArea [ 75%]

...xtArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; Laya.stage.addChild(ta); } } new UI_TextArea();module laya { import Stage = Laya.Stage; import TextArea = Laya.TextArea; import Browser ...

来源: Laya2.0_示例 发布时间: 20260303

607. 屏幕适配的缩放模式详解(JavaScript-2D基础篇(JS)-屏幕适配) [ 75%]

...  txt.text = "适配模式("+modes+") ";         txt.bold = true;         txt.pos(10, 350);         txt.fontSize = 60;         txt.color   = "#fff000";         Laya.stage.addChild(txt);     })();   })(); ``` ### 二、fixedheight模式 ​ f...

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

608. laya.ui.Slider_API3.0 [ 75%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 changeHandler changeHandler: Handler Defined in laya/ui/Slider.ts:46 数据变化处理器。 默认回调参数为滑块位置属性 valu...

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

609. Laya2.6、2.7等支持async、await编译经验分享 [ 75%]

...: { "module": "es6", "target": "es6", "noEmitHelpers": false, "sourceMap": true, "removeComments": true, "baseUrl": ".", "paths": { "tslib": [ "/Applications/LayaAirIDE_beta.app/Contents/Resources/app/node_modules/tslib/tslib.d.ts", "tslib/tslib.d.ts" ] }, "lib": [ "esnext", "dom", "es2015.promise" ...

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

610. laya.ui.Label_API3.0 [ 75%]

... label 。 label.font = "Arial";//设置 label 的字体。 label.bold = true;//设置 label 显示为粗体。 label.leading = 4;//设置 label 的行间距。 label.wordWrap = true;//设置 label 自动换行。 label.padding = "10,10,10,10";//设置 label 的边距。 label.color = "#ff00ff";//...

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