大约有 3,269 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0069 秒)
...etChildByName('castShadow'); receiveShadowgroup._children.forEach(_model => { //(_model as Laya.MeshSprite3D).meshRenderer.castShadow = true; (_model as Laya.MeshSprite3D).meshRenderer.receiveShadow = true; }); castShadowgroup._children.forEach(_model => { (_model as Laya.MeshSprite3D).meshRen...
来源: Laya_社区 发布时间: 20190813
...packages,packageDic,preCode){ var tPackage; var i=0,len=0; len=packages.length; var packageCodes; packageCodes=; for(i=0;i<len;i++){ CodeManager.createTsSamePackageOne(packageCodes,packageDic[packages[i]]); } packageCodes.splice(0,0,preCode); return packageCodes.join("\n"); } CodeManager.createTs...
来源: Laya_社区 发布时间: 20190531
...2e8f7b302fa8d139de4c' Laya.loader.load(url, Laya.Handler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Laya.stage.addChild(n...
来源: Laya_社区 发布时间: 20211026
...9的image此函数耗时1.2毫秒 if (Render.isConchWebGL) { (xoffset - 1 >= 0) && (gl.texSubImage2DEx(true, WebGLContext.TEXTURE_2D, 0, xoffset - 1, yoffset, WebGLContext.RGBA, WebGLContext.UNSIGNED_BYTE, bitmap)); (xoffset + 1 <= _w) && (gl.texSubImage2DEx(true, WebGLContext....
来源: Laya_社区 发布时间: 20180417
... var split=this._url.indexOf("/")>=0 ? "/" :"\\"; var idx=this._url.lastIndexOf(split); var folderPath=idx >=0 ? this._url.substr(0,idx+1):""; ...
来源: Laya_社区 发布时间: 20190202
...通过Ray进行碰撞检测么? var outHitAllInfo:Vector.<RaycastHit> = new Vector.<RaycastHit>(); point.elements[0] = MouseManager.instance.mouseX; point.elements[1] = MouseManager.instance.mouseY; ray.direction.x = 0; ray.direction.y = 0; ray.direction.z = 0; ray.origin.x = 0; ray.or...
来源: Laya_社区 发布时间: 20171017
... check(normalizeTime: number, paramsMap: Record<string, Animation2DParm>, isReplay: boolean): boolean Defined in laya/components/AnimatorTransition2D.ts:52 是否启用过渡 Parameters normalizeTime: number paramsMap: Record<string, Animation2DParm> isReplay: boolean Returns boolean rem...
来源: Laya3.0_api 发布时间: 20231115
...作用了,switchImg()只执行了一次,不能实现切换图片 --> } } new Main(); 2018-02-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 你再设置一下size 试试,没...
来源: Laya_社区 发布时间: 20180226
...ptErrorCannot assign to read only property 'window' of object '#<Window>' TypeError: Cannot assign to read only property 'window' of object '#<Window>' athttp://127.0.0.1:34658/game/libs/laya.wxmini.js:3:8 毫无规律,有时创建一个3D空项目一个字不改,不会...
来源: Laya_社区 发布时间: 20190319
...rrBitmapFont.getMaxHeight(); }; var startY = padding[0]; if (this._height > 0) { var tempVAlign = (this._textHeight > this._height) ? "top" : this.valign; if (tempVAlign === "middle") startY = (this._height - visibleLineCount * lineHeight) * 0.5 + padding[0] - padding[2]; else if (tempVAlign =...
来源: Laya_社区 发布时间: 20180417