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

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

31. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 51%]

... * 帧循环处理函数。 */ _update(): void; _create(useFrame: boolean, repeat: boolean, delay: number, caller: any, method: Function, args: Array<any>, coverBefore: boolean): void; /** * 定时执行一次。 * @param delay 延迟时间(单位为毫秒)。 * @param caller 执行域(this)...

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

32. 绘制图形 · LayaAir3.0文档 · LAYABOX [ 47%]

...@param height (可选)高度。 * @param type (可选)填充类型 repeat|repeat-x|repeat-y|no-repeat * @param offset (可选)贴图纹理偏移 * @param color (可选)颜色 * */ fillTexture(texture: Texture, x: number, y: number, width: number = 0, height: number = 0, type: string ...

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

33. Laya.URL.basePath加载不到网络资源 [ 46%]

...ePage.html:1 2code.js:57322 HHHH false VM1768:1 Resources already exist,is repeated loading: https://piggy.q1.comres/sound/BGM.mp3 console.warn @ VM1768:1 Loader.cacheRes @ code.js:12995 SoundManager.playSound @ code.js:4963 SoundManager.playMusic @ code.js:4988 GameEx.onLoaded @ code.js:57359 GameE...

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

34. 分享个用美术资源做位图文本的方法。。。 [ 45%]

...illTexture(this._imageData,charData.x,charData.y,charData.w,charData.h,"no-repeat",new Laya.Point(-charData.x,-charData.y)); charSp.size(charData.w,charData.h) charSp.scrollRect = new Laya.Rectangle(charData.x,charData.y,charData.w,charData.h); this.addChild(charSp); return charSp; } // 设置位置...

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

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

...re.wrapModeU = Laya.BaseTexture.WARPMODE_CLAMP; //在V方向使用WARPMODE_REPEAT texture.wrapModeV = Laya.BaseTexture.WARPMODE_CLAMP; //设置过滤方式 texture.filterMode = Laya.BaseTexture.FILTERMODE_BILINEAR; //设置各向异性等级 texture.anisoLevel = 2; // texture.setCompressData(data); ...

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

36. Unity插件使用说明(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 24%]

...选的状态) | | Wrap Mode(循环模式) | 部分支持(包括:Repeat重复、Clamp强制拉伸) | | Filter Mode(过滤模式) | 支持(包括:Point点过滤、Bilinear双线性过滤、Trilinear三线性过滤) | | Aniso Level(各向异性等级) | 支持 | #### 4.6 动...

来源: Laya2.0_文档 发布时间: 20210714

37. socket大型项目回调 [ 23%]

...ag)); this.encodeProp(msg[name], proto.type, protos, buffer); break; case "repeated": if (!!msg[name] && msg[name].length > 0) { this.encodeArray(msg[name], proto, protos, buffer); } break; } } } return buffer; } static decodeProtos(protos:any, buffer:Laya.Byte):any { var msg:any = {}; wh...

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