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

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

2331. 请问在2.0版本的js中,如何获取mouse_move的鼠标坐标 [ 50%]

...在2.0版本的js中,如何获取mouse_move的鼠标坐标 img.on(Laya.Event.MOUSE_MOVE,this,this.onmousemove); apesCtn.addChild(img); ........ onmousemove(e) { //console.log("e="+JSON.stringify(e)); for (var property in e) { console.log(property+"="+e[property]); } console.log("==================...

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

2332. tiledMap场景切换问题 [ 50%]

...troy() 150*****745 • 2018-06-05 12:06 我用的是Laya.stage.on(Laya.Event.CLICK, this, function (e) {}),请问怎么销毁,销毁以后到下一个页面要重新绑定事件吗? Laya_Aaron • 2018-06-05 14:56 @150*****745:你的代码不给我讲我很难找到你说的这段,stage ...

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

2333. android旋转屏幕 半边黑屏 [ 50%]

... "内容测试"; spr.addChild(te); Laya.stage.addChild(spr); Laya.stage.on(Event.CLICK, this, function():void { if (Laya.stage.screenMode == Stage.SCREEN_HORIZONTAL) { if (Browser.window.conchConfig) { Browser.window.conchConfig.setScreenOrientation(1); } Laya.stage.screenMode = Stage.SCREEN_VERTICA...

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

2334. Anmation设置宽高后拖到UI里宽高左上角无法接受鼠标事件 [ 50%]

...击事件 如何设置Sprite的宽高和点击区域? 遮罩点击事件 Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 问题状态 最新活动: 2017-12-11 17:15 浏览: 906 关注: 2 人 Laya_Aaron • 2017-12-11 16:54 有相关代码截图,和设置项目具体截图 或者...

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

2335. combobox 放在panel下面,鼠标放在combobox上拖动 panel时候 combobox下的list不会随着 panel移动 [ 50%]

...都有 鼠标滚轮滚动事件 龙骨skeleton鼠标点击区域的设置 Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 问题状态 最新活动: 2017-12-22 10:19 浏览: 832 关注: 2 人 username_zmf • 2017-12-22 10:51 你说的我不太明白,我的 combobox 就是放在 pa...

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

2336. 材质-BlinnPhong-高光贴图 [ 50%]

...mport laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.utils.Handler; import laya.utils.Stat; import common.CameraMoveScript; /** * ... * @author */ public class BlinnPhong_SpecularMap { private var scene:Scene; private var rotation:Vector3 = new Vector3...

来源: Laya_示例 发布时间: 20251219

2337. LayaAirIDE 2.0beta5打开编辑模式出错 [ 50%]

...ndefined TypeError: Cannot read property 'firstInit' of undefined     at EventDispatcher.SharedIFrameUIViewerScene._initRenderAfterComplete (file:///Applications/LayaAirIDE_beta.app/Contents/Resources/app/out/vs/layaEditor/h5/layabuilder.max.js:29683:48)     at EventHandler.__proto.run (file:///...

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

2338. 骨骼动画销毁后再创建,报错 [ 50%]

...Driver.addTextureToAtlas __proto.addTextureToAtlas __proto.runWith __proto.event __proto.completeCreate __proto.recreateResource __proto.activeResource (anonymous function) __proto._drawTextureM __proto.drawTextureWithTransform ._drawTextureWithTransform __proto._renderAll __proto._graphics __proto....

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

2339. 微信小游戏内TextInput不能实现只输数字的功能 [ 50%]

... this.addChild(input); input.width = 100; input.height = 50; input.on(Laya.Event.BLUR, this, e=>{ let str = input.text.split(''); for (let i = 0; i < str.length; i++) { let isNotNumber = true; for (let j = 0; j < 10; j++) { if (str[i] == j.toString()) { isNotNumber = false; break; } } if (i...

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

2340. Protobuf decode报错 [ 50%]

...-------不知道怎么把接受的数据decode为message-------- socket.on(Event.MESSAGE,this,this.onMessageReceived); private onMessageReceived(msg:any):void { //received data from server var byte:Byte=new Byte(); byte.writeArrayBuffer(msg); byte.pos=0; byte.endian=Socket.BIG_ENDIAN; //拆包开始...

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