大约有 55 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0030 秒)
..., 800)); } function onStageClick() { var p = new Point(0, 0); layer.getTilePositionByScreenPos(Laya.stage.mouseX, Laya.stage.mouseY, p); layer.getScreenPositionByTilePos(Math.floor(p.x), Math.floor(p.y), p); sprite.pos(p.x, p.y); } function mapLoaded() { layer = tiledMap.getLayerByIndex(0); var radi...
来源: Laya_示例 发布时间: 20241118
...a.Sprite(); copyimg.size(100,100); copyimg.pos(0,200); copyimg.graphics.drawTexture(texcpy,0,0,100,100); Laya.stage.addChild(copyimg); 这样的方式复制的图片也显示不出来 2019-07-30 0 0 分享 微博 QZONE 微信 为...
来源: Laya_社区 发布时间: 20190730
... 0); // 通过屏幕坐标来获取选中格子的索引 this.layer.getTilePositionByScreenPos(Laya.stage.mouseX, Laya.stage.mouseY, p); // 通过地图坐标得到屏幕坐标 this.layer.getScreenPositionByTilePos(Math.floor(p.x), Math.floor(p.y), p); this.sprite.pos(p.x, p.y); } mapLoaded() { this...
来源: Laya2.0_示例 发布时间: 20241118
...w.repl,'<img src="res/face/face'+i+'.png" style="width:36px;height:36px;position:relative;top:30px;"></img>'); } div.pos(30,5); div.innerHTML = txt; div.width = div.contextWidth; if(div.contextWidth > 200) div.contextWidth = 200; console.log(div.contextWidth); paopao.y = gRoomView.cha...
来源: Laya_社区 发布时间: 20170911
... var img2 =new Laya.Image("bg1.png"); this.pos(0,0); img1.size(100,30); img2.size(100,50); img1.name ="img1"; img2.name ="img2"; img2.visible =false; //默认img2隐藏 img...
来源: Laya_社区 发布时间: 20190522
... src="res/face/face'+i+'.png" style="width:36px;height:36px;position:relative;top:30px;"></img>'); } div.pos(30,5); div.innerHTML = txt; div.width = div.contextWidth; if(div.contextWidth > 200) div.contextWidth = 200; console.log(div.contextWidth); paopao.y = gRoomVie...
来源: Laya_社区 发布时间: 20170911
... var p: Point = new Point(0, 0); this.layer.getTilePositionByScreenPos(Laya.stage.mouseX, Laya.stage.mouseY, p); this.layer.getScreenPositionByTilePos(Math.floor(p.x), Math.floor(p.y), p); this.sprite.pos(p.x, p.y); } priv...
来源: Laya_社区 发布时间: 20201230
...Model/quad/quad-Plane001.lm"))) as MeshSprite3D; mesh0.transform.localPosition = new Vector3(-0.3, 0.0, 0.0); mesh0.transform.localScale = new Vector3(0.01, 0.01, 0.01); mesh1 = scene.addChild(new MeshSprite3D(Mesh.load("../../../../res/threeDimen/staticModel/quad/quad-Plane001.lm")))...
来源: Laya_社区 发布时间: 20170209
...; this.createBridge(); this.eventListener(); } createBridge() { const startPosX = 250, startPosY = 450; let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addComponentIntance(groundBody); let chainCollider = gro...
来源: Laya2.0_示例 发布时间: 20241118
...","fresh/hand2.png"] handani.interval = 150 handani.zOrder = 10000 handani.pos(point.x+50,point.y+30) MainUI.Root.addChild(handani) handani.play(0,true,"handani") 控制台: [warn]Retry to load: fresh/hand1.png [warn]Retry to load: fresh/hand2.png [error]Failed to load: fresh/hand1.png [error]Fail...
来源: Laya_社区 发布时间: 20171117