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

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

1791. 引擎中的修改意见 [ 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

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

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

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

1794. 角色模型的材质列表切换后,不播放动作了 [ 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

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

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

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

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

1797. 水平滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

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

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

1798. 使用UI组件tree时,添加的数据结构必须是xml吗?添加xml时对于tree的单元格里面的label如何控制例如visible的属性 [ 41%]

...alpha属性并赋值给Item对象 if(e._dataSource.isAlpha) { var alphaNum:Number=e._dataSource.isAlpha; e.alpha=alphaNum; }//如果未设置alpha的项,则默认透明度为1 else { e.alpha=1; } }附件已经上传,可以参考,把alpha改成你对应的visible属性即可!   TreeAlpha.rar...

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

1799. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 40%]

... string = "res/ui/coutDown.png"; private counter: Clip; private currFrame: number; private controller: Button; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = ...

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

1800. HScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 40%]

...ollBar.y-50); } /***滚动条位置变化回调***/ private onChange(value:Number):void { this.promptText.text= "滚动条的位置: value=" + value; } } } new laya.UI_ScrollBar(); ```

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