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

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

391. 组件脚本的内置方法 · LayaAir3.4 · 引擎文档 · LAYABOX [ 26%]

... */ private _text: Laya.Text; /**盒子等级 */ private _level: number; constructor() { super(); } //组件被启用后执行 onEnable(): void { this._level = Math.round(Math.random() * 5) + 1; this._text = this.owner.getChildByName("levelTxt") as Laya.Text; this._text.text = this._level + ""; } //...

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

392. laya.display.Stage_API3.0 [ 26%]

...态更改帧率有利于改进手机耗电。 Hierarchy Sprite Stage Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize canvasDegree canvasRotation designHeight designWidth focus hitTestPrior mouseThrough name renderingEnabled screenAdaptationEnabled tag ...

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

393. 2D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 26%]

...脑性能而定,本例为10000): class Test { private text:Laya.Text; constructor() { Laya.init(550,400,Laya.WebGL); Laya.Stat.show(); var textBox=new Laya.Sprite(); for(var i=0;i<10000;i++) { this.text=new Laya.Text(); this.text.text=(Math.random()*100).toFixed(0); this.text.color="#CCCCCC";...

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

394. laya.ui.ProgressBar_API3.0 [ 26%]

...生改变: value=", value); } } Hierarchy UIComponent ProgressBar Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize changeHandler hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX...

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

395. laya.ui.Radio_API3.0 [ 26%]

...。 see laya.ui.RadioGroup Hierarchy Button Radio Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anc...

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

396. laya.ui.ScrollBar_API3.0 [ 26%]

....ui.HScrollBar Hierarchy UIComponent ScrollBar VScrollBar HScrollBar Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoHide autoSize bottomMoveLimit changeHandler disableDrag downButton elasticBackTime elasticDistance hitTestPrior isLockedFun mouseThrough nam...

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

397. 网络通信 · LayaAir3文档 · LAYABOX [ 26%]

...功能。我们写个简单的例子来看下用法: class LayaSample { constructor() { //创建HttpRequest对象 let http: Laya.HttpRequest = new Laya.HttpRequest(); //设置超时时间 http.http.timeout = 10000; //发送了一个简单的请求 http.send("resources/data.txt", "", "get", "text")...

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

398. laya.ui.Slider_API3.0 [ 26%]

...der see laya.ui.VSlider Hierarchy UIComponent Slider HSlider VSlider Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize changeHandler hitTestPrior isVertical mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInH...

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

399. laya.ui.FontClip_API3.0 [ 26%]

...ntClip.value = "a1326";//显示"a1326"文字 Hierarchy Clip FontClip Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anch...

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

400. laya.ui.UIGroup_API3.0 [ 26%]

...Tab 和 RadioGroup 的基类。 Hierarchy Box UIGroup RadioGroup Tab Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchor...

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