大约有 1,182 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0047 秒)
Laya3.0_api(429) Laya_社区(250) Laya2.0_api(228) laya_api(183) Laya2.0_文档(54) Laya3.0_文档(26) Laya2.0_示例(6) Laya_示例(6)
...。 Returns number 点积。 Static equals equals(a: Vector3, b: Vector3): boolean Defined in laya/d3/math/Vector3.ts:320 判断两个三维向量是否相等。 Parameters a: Vector3 三维向量。 b: Vector3 三维向量。 Returns boolean 是否相等。 Static lerp lerp(a: Vector3, b: Vector3, ...
来源: Laya3.0_api 发布时间: 20231102
...this, this.onDeviceorientation); } private onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInfo): void { this.info.text = "alpha:" + Math.floor(rotationInfo.alpha) + '\n' + "beta :" + Math.floor(rotationInfo.beta) + '\n' + "gamma:" + Math.floor(rotationInfo.gamma); } } new Gyros...
来源: Laya2.0_文档 发布时间: 20210715
...; line2DRender: Laya.Line2DRender; lastMousePos: number[] = []; isDrawing: boolean = false; // 标记是否正在绘制 // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onEnable(): void { // 添加2D线渲染器组件 this.line2DRender = this.own...
来源: Laya3.0_文档 发布时间: 20250214
...###################################################### } private curStatus:boolean = false; private refreshCamera(){ this.curStatus =!this.curStatus; let data:ArrayBuffer = Laya.Loader.getRes(this.AllPng[this.curStatus ? 0: 1]);//pic-001 const x2 = new Uint8Array(data); let p = new window['PNG'](x2)...
来源: Laya_社区 发布时间: 20220815
...ntAction:string = "stand"; /*角色动画是否完成*/ public aniComplete:Boolean = true; /*角色移动速度*/ public speed:number = 0.04; /*3D摄像机*/ public camera:Laya.Camera; /*摇杆控制器*/ private rocker:RockerView; /*攻击按钮控制器*/ private attack:attackView; /*摇杆上一...
来源: Laya_社区 发布时间: 20171113
... _vs = _tempVS; var insertNew:Boolean=false; if (Render.isConchNode || Render.isConchApp) { _vs.length = tempVLen; insertNew = true; ...
来源: Laya_社区 发布时间: 20190628
...public static _mainTex : number; public static _mainCol : number; inited : boolean = false; constructor() { super(); if(!this.inited) { CMat._mainTex = Laya.Shader3D.propertyNameToID("u_MainTex"); CMat._mainCol = Laya.Shader3D.propertyNameToID("u_MainCol"); CMat.initShader(); this.inited = true; } t...
来源: Laya_社区 发布时间: 20190814
...的写法private function multiLineMacroCompilationTest():void { var flag:Boolean; var msg:String; var result:int = 0; /*[IF-FLASH-BEGIN]*/ if (!flag) { msg = "AS3"; flag = true; } /*[IF-FLASH-END]*/ if (flag) { result = 100; } /*[IF-SCRIPT-BEGIN] else { msg = "JS"; } [IF-SCRIPT-END]*/ trace(msg + "...
来源: Laya_社区 发布时间: 20151106
...e/material/RenderState.ts:146 深度测试函数。 depthWrite depthWrite: boolean Defined in laya/d3/core/material/RenderState.ts:148 是否深度测试。 dstBlend dstBlend: number Defined in laya/d3/core/material/RenderState.ts:130 目标混合参数,在blend为BLEND_ENABLE_ALL时生效。 dstBle...
来源: Laya3.0_api 发布时间: 20231102
...ly] 纹理格式 BaseTexture _mgrKey : int = 0RenderTexture2D mipmap : Boolean[read-only] 是否使用mipLevel BaseTexture offsetX : Number[read-only] 获取offsetX。 RenderTexture2D offsetY : Number[read-only] 获取offsetY RenderTexture2D sourceHeight : Number[read-only] 获取高度...
来源: Laya2.0_api 发布时间: 20190513