大约有 390 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)
...释放 [i][b]url = URL.formatURL(directory + name); [/b][/i] cacheRes(url, Texture.create(tPic, obj.frame.x, obj.frame.y, obj.frame.w, obj.frame.h, obj.spriteSourceSize.x, obj.spriteSourceSize.y, obj.sourceSize.w, obj.sourceSize.h)); loadedMap[url].url = url; map.push(url); } } delete _data.pics; ...
来源: Laya_社区 发布时间: 20180415
...检查后重新编译。 TypeScript下HttpRequest发送Post请求有Bug? Texture图片能否进行翻转? 富文本下划线绘制bug 我用list.array=Array;数据全部插进去数组里了,但是list中没有完全展示数组数据,只展示了其中的图片部分,数组能console出,...
来源: Laya_社区 发布时间: 20171226
...new Laya.loader.getRes(url); var ape = new Laya.Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200,0); } ``` 第三种我们直接创建一个纹理来显示: ```javascript function completeHandler(data){ //加载完成返回的data是arraybuffer //......这里处理...
来源: Laya2.0_文档 发布时间: 20210715
... } private onAssetLoaded(): void { // 使用texture console.log("加载结束"); } // 加载进度侦听器 private onLoading(progress: number): void { console.log("加载进度: " + progress); } private o...
来源: Laya_社区 发布时间: 20240705
..., function():void{ var sprite:Sprite = new Sprite(); sprite.pos(0, 0); var texture:Texture = new Texture(Browser.window.sharedCanvas); texture.bitmap.alwaysChange = true;//小程序使用,非常费,这个参数可以根据自己的需求适当调整,如果内容不变可以不用设置成true ...
来源: Laya_社区 发布时间: 20180525
... var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("Assets/test.png"); material.albedo = new Laya.Vector4(1, 1, 1, 0.95); material.renderMode = Laya.StandardMaterial.RENDERMODE_DEPTHREAD_TRANSPARENTDOUBLEFACE; //渲...
来源: Laya_社区 发布时间: 20180119
...form变量。 3.1 Uniform常见变量类型 Uniform变量的常见类型:Texture2D,Color,Vector2,Vector3,Vector4,Bool,Float,Matrix4x4,TextureCube Texture2D用于2D纹理采样的图片类型,图片本地支持格式:JPG,PNG Color 颜色类型,为四个Float类型组成的...
来源: Laya3.0_文档 发布时间: 20251010
...: var buf:CommandBuffer = new CommandBuffer();buf.setRenderTarget(renderTexture);buf.drawRender(renders[i],materials[i],0); 2.需要将CBuffer绑定到Camera的渲染事件中,目前laya支持的Camera事件如下: BeforeForwardOpaque = 0,//在渲染非透明物体之前BeforeSkyBox = 2,//在...
来源: Laya3.0_文档 发布时间: 20251010
... Laya.stage.graphics.clear(false); var textture = new Laya.Texture(canvas); textture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 Laya.stage.graphics.drawTexture(textture); debugDraw.SetSprite(ctx); debugDraw.SetDrawScale(30....
来源: Laya_社区 发布时间: 20180905
...son数据 private _jsonData: any; // 图片数据 private _imageData: Laya.Texture; // 文本字间距 private _padding: number = 0; // 所有元素; private charSprites: Laya.Sprite; // 位置类型 private _posType: string; // 左 右 中 public static LEFT: string = "left"; public static RIGHT:...
来源: Laya_社区 发布时间: 20161014