大约有 2,543 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0063 秒)
Laya_社区(2051) Laya3.0_api(129) Laya2.0_文档(109) laya_api(84) Laya2.0_api(82) Laya3.0_文档(37) Laya_示例(36) Laya2.0_示例(15)
...tage; import Event = Laya.Event; import Rectangle = Laya.Rectangle; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Interaction_Drag { private ApePath: string = "../laya/monkey2.png"; private ape: Sprite; private dr...
来源: Laya_社区 发布时间: 20171106
... 微信主域代码: Laya.timer.once(400,this,function():void{ var rankTexture:Texture = new Texture(Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 rankSprite2.graphics.drawTexture(rankTexture,5,78,rankTexture.width,rankTexture.hei...
来源: Laya_社区 发布时间: 20180504
...el = Math.random().toString(); // console.log(Math.random()); let tex:Laya.Texture = Laya.Loader.getRes(this.bUrl); let x:number = this._testStatus == true ? 0:50;//Math.random()>0.5 ? 50 : 0; this._testStatus = !this._testStatus; // let canvasInfo = this.getCanvasWidthHeight(); let ctx = new Lay...
来源: Laya_社区 发布时间: 20230328
... 6, 10, 10))); var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); ...
来源: Laya_示例 发布时间: 20251209
...d All Inherited Externals Only exported Menu Globals "laya/display/cmd/FillTextureCmd" FillTextureCmd Class FillTextureCmd 填充贴图 Hierarchy FillTextureCmd Index Properties color height offset percent texture type width x y ID Methods getBoundPoints recover Properties color color: number = 4294...
来源: Laya3.0_api 发布时间: 20231115
...sendReq(req) ; } 传过去的是bitmap: var htmlCanvas:HTMLCanvas; var texture:Texture; htmlCanvas = Laya.stage.drawToCanvas(Laya.stage.width,Laya.stage.height,0,0); texture = new Texture(htmlCanvas); texture.bitmap; 2018-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180329
...ltDFG Hierarchy PBRDefaultDFG Index Accessors defaultDFG Methods DefaultDfgTexture Accessors Static defaultDFG get defaultDFG(): Texture2D set defaultDFG(value: Texture2D): void Defined in laya/d3/shader/pbr/PBRDefaultDFG.ts:13 Returns Texture2D Defined in laya/d3/shader/pbr/PBRDefaultDFG.ts:16 Para...
来源: Laya3.0_api 发布时间: 20231102
...9, 129)); var terMaterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture3=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture4=new Laya.Texture2D.lo...
来源: Laya_社区 发布时间: 20170620
...chy DrawTrianglesCmd Index Properties alpha blendMode color indices matrix texture uvs vertices x y ID Methods getBoundPoints recover Properties alpha alpha: number Defined in laya/display/cmd/DrawTrianglesCmd.ts:46 alpha blendMode blendMode: string | null Defined in laya/display/cmd/DrawTrianglesCm...
来源: Laya3.0_api 发布时间: 20231115
...殊的原因,我需要自己解析图集数据,并生成图集中的小texture,但是这些texture在绘制时并不会合并到一个drawcall中,请问在生成texture需要做什么特殊的设置吗? 2018-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20181108