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

大约有 2,543 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0063 秒)

301. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 86%]

...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

302. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 86%]

... 微信主域代码: 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

303. setSubPixels画布擦除不掉 [ 85%]

...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

304. 射线检测-放置物体 [ 85%]

... 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

305. laya.display.cmd.FillTextureCmd_API3.0 [ 85%]

...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

306. app 截屏分享功能问题 [ 85%]

...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

307. laya.d3.shader.pbr.PBRDefaultDFG_API3.0 [ 85%]

...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

308. 怎么给从模型生成的地形TerrainMaterial材质??? [ 85%]

...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

309. laya.display.cmd.DrawTrianglesCmd_API3.0 [ 85%]

...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

310. 自己解析Atlas生成的图片如何减少drawcall [ 85%]

...殊的原因,我需要自己解析图集数据,并生成图集中的小texture,但是这些texture在绘制时并不会合并到一个drawcall中,请问在生成texture需要做什么特殊的设置吗? 2018-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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