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

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

341. laya.ui.ProgressBar_API3.0 [ 41%]

...生改变: 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

342. laya.ui.ScrollBar_API3.0 [ 41%]

....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

343. laya.ui.Slider_API3.0 [ 41%]

...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

344. laya.ui.UIGroup_API3.0 [ 41%]

...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

345. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 41%]

...athLength: number; private startPoint: Vector2; private endPoint: Vector2; constructor() { //初始化引擎 Laya3D.init(0, 0); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; //显示性能面板 Stat.show(); this.path = []; this.startPoint = new Vector2(); this....

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

346. laya.display.Stage_API3.0 [ 40%]

...态更改帧率有利于改进手机耗电。 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

347. 组件脚本的内置方法 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

... */ 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

348. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 38%]

...: number = 20 public curpos: Laya.Vector3; private delatpos: Laya.Vector3; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 * 此方法为虚方法,使用时重写覆盖即可 */ onAwake(): void { this.curpos = new...

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

349. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

...eInfo.layerindex = layerindex; this.playStateInfo.playState = playstate; } constructor() { super(); } /** * 动画状态开始时执行。 */ onStateEnter(): void { console.log("动画开始播放了"); } /** * 动画状态运行中 * @param normalizeTime 0-1动画播放状态 */ onStateUpdate(norma...

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

350. 网络通信 · LayaAir3文档 · LAYABOX [ 34%]

...功能。我们写个简单的例子来看下用法: 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