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

大约有 1,182 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0047 秒)

1151. laya.d3.math.Vector3_API3.0 [ 40%]

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

1152. 陀螺仪与加速计(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 40%]

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

1153. 2D线渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

...; line2DRender: Laya.Line2DRender; lastMousePos: number[] = []; isDrawing: boolean = false; // 标记是否正在绘制 // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onEnable(): void { // 添加2D线渲染器组件 this.line2DRender = this.own...

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

1154. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 39%]

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

1155. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 38%]

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

1156. 1.0 骨骼drawcall优化猥琐方法 [ 38%]

...           _vs = _tempVS;             var insertNew:Boolean=false;             if (Render.isConchNode || Render.isConchApp)             {                 _vs.length = tempVLen;                 insertNew = true;      ...

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

1157. 继承自Laya.BaseMaterial并且自定义Shader的的自定义材质如何设置透明渲染 [ 38%]

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

1158. Laya中的宏编译要怎么用啊 [ 37%]

...的写法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

1159. laya.d3.core.material.RenderState_API3.0 [ 37%]

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

1160. laya.resource.RenderTexture2D [ 36%]

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