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

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

1791. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 42%]

...s Main {         private _roomId = 0;         constructor(roomId?: number) {             this._roomId = roomId;             Laya.init(750, 1218, Laya.WebGL);             Laya.Browser.document.title = 'GG游戏;             if (Laya.Browser.onPC) {              ...

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

1792. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 41%]

...eatsno'], msg['from_client_name'], msg['content']); } private AddChat(seat:number, name:string, txt:string) { let paopao = new ui.langren.room.SayBoardUI(); paopao.x = 10; paopao.lbSayName.text = name; let div:Laya.HTMLDivElement = new Laya.HTMLDivElement(); div.style.lineHeight = 36; div.style.font...

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

1793. UI-Tab [ 41%]

...onSelect); Laya.stage.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } } new laya.UI_Tab();package { import laya.display.Stage; import laya.ui.Tab; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_T...

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

1794. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 41%]

...SpineTempletBinary; private var skeleton:SpineSkeleton; private var index: Number = -1; public function Main() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private function startFun(): v...

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

1795. 引擎中的修改意见 [ 41%]

...return */ public function getGrahicsDataWithCache(aniIndex:int, frameIndex:Number):Graphics { if(_graphicsCache[aniIndex] && _graphicsCache[aniIndex][frameIndex]){ return _graphicsCache[aniIndex][frameIndex]; } return null; } 2、Text:语言包的使用形同虚设: public function set t...

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

1796. Cannot read property 'toDefault' of undefined报错是什么原因 [ 41%]

...1就是下面这句报错 Laya.Physics.rayCast(this.ray, this._outHitInfo, Number.MAX_VALUE, 10); if (this._outHitInfo.sprite3D.name === "tlj"){ isRotate = !isRotate; } // this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, state); // //绘出射线 // this.phasorSpriter3D.line(this.ray.origin.x, th...

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

1797. UI-Tab [ 41%]

...onSelect); Laya.stage.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } } new laya.UI_Tab();package { import laya.display.Stage; import laya.ui.Tab; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_T...

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

1798. 角色模型的材质列表切换后,不播放动作了 [ 41%]

...class CustomMaterial extends Laya.BaseMaterial { static DIFFUSETEXTURE_ID: number = 1; constructor() { super(); this.setShaderName("CustomShader"); } public getDiffuseTexture(): Laya.BaseTexture { return this._getTexture(CustomMaterial.DIFFUSETEXTURE_ID); } public setDiffuseTexture(value: Laya.BaseT...

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

1799. laya.d3.webxr.core.AxiGamepad_API3.0 [ 41%]

...Listener off offAll offAllCaller on once Properties axisLength axisLength: number Defined in laya/d3/WebXR/core/WebXRGamepad.ts:16 轴数量 handness handness: string Defined in laya/d3/WebXR/core/WebXRGamepad.ts:12 轴设备名字 Static EVENT_OUTPUT EVENT_OUTPUT: string = "outputAxi_id" Defined in...

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

1800. 垂直滑动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 41%]

...r(this, this.onChange); this.owner.addChild(vs); } private onChange(value: number): void { console.log("滑块的位置:" + value); } } 运行效果: (动图2-1) Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

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