大约有 1,869 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0048 秒)
Laya_社区(616) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(70) Laya2.0_示例(68)
...了个命名空间declare namespace autobahn { export class Session { id: number; realm: string; isOpen: boolean; features: any; ..................................然后在ts文件中 new autobahn.引用华丽丽的出现了 如果谁有更好的方法 一起讨论研究.. 2018-08-05 1 4 分享 ...
来源: Laya_社区 发布时间: 20180805
...aTest : Boolean 获取是否透明裁剪。 BaseMaterial alphaTestValue : Number 获取透明测试模式裁剪值。 BaseMaterial blend : int 获取混合方式。 PixelLineMaterial blendDst : int 获取混合目标。 PixelLineMaterial blendSrc : int 获取混合源。 PixelLineMaterial...
来源: Laya2.0_api 发布时间: 20190513
...刷新几次就变大了。 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
...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
...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
...aTest : Boolean 获取是否透明裁剪。 BaseMaterial alphaTestValue : Number 获取透明测试模式裁剪值。 BaseMaterial ambientColor : Vector3 设置环境光颜色。 StandardMaterial ambientTexture : BaseTexture 获取环境贴图。 StandardMaterial blend : int透明混合。Ba...
来源: laya_api 发布时间: 20170929
...lecte); } // 根据选择tab的索引切换页面 private onSelecte(index: number): void { //切换ViewStack子页面 this.viewstack.selectedIndex = index; } } 最终的效果如动图1-7所示: (动图1-7) 2. ViewStack属性 ViewStack的特有属性如下: (图2-1) 属性 说明 背景...
来源: Laya3.0_文档 发布时间: 20251010
...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
... 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
...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