大约有 1,191 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0066 秒)
Laya3.0_api(429) Laya_社区(256) Laya2.0_api(228) laya_api(183) Laya2.0_文档(54) Laya3.0_文档(29) Laya2.0_示例(6) Laya_示例(6)
...###################################################### } 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
...sion == "3.3.0-beta.4") { Scene.open = function (url: string, closeOther?: boolean, param?: any, complete?: any, progress?: any): Promise<Laya.Scene> { if (typeof (complete) === "function") { progress = complete; complete = null; } if (typeof (param) === "function") complete = param; if (progr...
来源: Laya_社区 发布时间: 20250609
... _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
...加一个事件监听来跟踪上传过程。` | | ` withCredentials` | ` boolean` | 表明在进行跨站(cross-site)的访问控制(Access-Control)请求时,是否使用认证信息(例如cookie或授权的header)。 默认为 `false。` | | timeout | number | 请求超时时间 | `withCredentia...
来源: Laya2.0_文档 发布时间: 20210714
...r, fillColor: any, lineColor: any = null, lineWidth: number = 1, percent?: boolean): DrawRectCmd { return this.addCmd(DrawRectCmd.create(x, y, width, height, fillColor, lineColor, lineWidth, percent)); } 代码示例: let sp = new Laya.Sprite(); //画矩形 sp.graphics.drawRect(20, 20, 100, 50, "#...
来源: Laya3.0_文档 发布时间: 20251010