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

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

1741. 关于TS环境下的第三方库导入的疑问 [ 45%]

...了个命名空间declare namespace autobahn { export class Session { id: number; realm: string; isOpen: boolean; features: any; ..................................然后在ts文件中 new autobahn.引用华丽丽的出现了   如果谁有更好的方法 一起讨论研究.. 2018-08-05 1 4 分享 ...

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

1742. laya.d3.core.pixelLine.PixelLineMaterial [ 45%]

...aTest : Boolean 获取是否透明裁剪。 BaseMaterial alphaTestValue : Number 获取透明测试模式裁剪值。 BaseMaterial  blend : int 获取混合方式。 PixelLineMaterial  blendDst : int 获取混合目标。 PixelLineMaterial  blendSrc : int 获取混合源。 PixelLineMaterial...

来源: Laya2.0_api 发布时间: 20190513

1743. Laya.Browser获取宽高数值会变化,iphone6第一次加载正确,刷新几次就变大了。 [ 45%]

...刷新几次就变大了。 class GameMain{     public static pxTimes: number = Laya.Browser.height / Laya.Browser.clientHeight;     constructor()     {         console.log('ch=' + Laya.Browser.clientHeight + ', h=' + Laya.Browser.height + ', pxTimes=' + GameMain.pxTimes);         Laya...

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

1744. UI-Label [ 45%]

...eateLabel(color: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor...

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

1745. laya.d3.core.trail.TrailRenderer [ 45%]

...BaseMaterial> 获取浅拷贝材质列表。 BaseRender sortingFudge : Number排序矫正值。BaseRenderProtected Properties PropertyDefined By  _projectionViewWorldMatrix : Matrix4x4TrailRendererPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By  ...

来源: Laya2.0_api 发布时间: 20190513

1746. laya.d3.core.material.StandardMaterial [ 45%]

...aTest : Boolean 获取是否透明裁剪。 BaseMaterial alphaTestValue : Number 获取透明测试模式裁剪值。 BaseMaterial  ambientColor : Vector3 设置环境光颜色。 StandardMaterial  ambientTexture : BaseTexture 获取环境贴图。 StandardMaterial blend : int透明混合。Ba...

来源: laya_api 发布时间: 20170929

1747. 导航容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...lecte); } // 根据选择tab的索引切换页面 private onSelecte(index: number): void { //切换ViewStack子页面 this.viewstack.selectedIndex = index; } } 最终的效果如动图1-7所示: (动图1-7) 2. ViewStack属性 ViewStack的特有属性如下: (图2-1) 属性 说明 背景...

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

1748. 进度条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...ssBar.value = 0; this.progressBar.value += 0.05; } private onChange(value: number): void { // 控制台打印输出进度 console.log("进度:" + Math.floor(value * 100) + "%"); } } 示例效果如下: (动图2-1) ProgressBar的其他属性也可以通过代码来设置,上述示例演示...

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

1749. 使用方向键 控制精灵在格子中移动 [ 44%]

... Laya.timer.frameLoop(1,this,this.loop);事件响应 onkeyup(e){ for(let i:number = 0;i<this.keyList.length;i++){ if(this.keyList[i]==e.keyCode){ this.keyList.splice(i,1); break; } } } onkeydown(e){ if(this.keyList.indexOf(e.keyCode)<0){ this.keyList.push(e.keyCode); } } loop(){ if(this.sp.x!=...

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

1750. UI-Label [ 44%]

...eateLabel(color: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor...

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