大约有 1,604 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0118 秒)
...1.transform.localPositionX += 0.016; res2.transform.position.x += 0.016; console.log("本地坐标1:", res1.transform.localPosition); console.log("世界坐标1:", res1.transform.position); console.log("本地坐标2:", res2.transform.localPosition); console.log("世界坐标2:", res2.transform.po...
来源: Laya_社区 发布时间: 20190717
...隔(单位:毫秒) ani.index = 0; // 当前播放索引 console.log(ani.index); ani.play(); console.log(ani.index); var bounds = ani.getGraphicBounds(); ani.pivot(bounds.width / 2, bounds.height / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); con...
来源: Laya_社区 发布时间: 20160712
...nd= Laya.Pool.getItemByClass("mybg",BackGround); Laya.stage.addChild(bg1); console.log("bg1->",bg1); //对象放回Pool里,并清除对象 Laya.Pool.recover("mybg",BackGround); bg1.removeSelf(); Laya.stage.removeChild(bg1); console.log("bg1->",bg1); //再次从Pool里获取对象的时候,...
来源: Laya_社区 发布时间: 20180823
...t[i].x = i%3*190; _heroItemList[i].y = parseInt((i/3).toString()) * 155; } console.debug("创建的实例的数量::"+_heroItemList.length); } private function onSelectedHeroChange():void { _curSelectedHeroId = []; _curSelectedHeroProp = []; console.debug("当前保存的实例::"+_heroItemList); } ...
来源: Laya_社区 发布时间: 20170321
...MouseManager.instance.mouseX; point.y = Laya.MouseManager.instance.mouseY; console.log("rayPoint111 pointx:"+ point.x+" pointy:"+point.y+ " ray.origin.x:"+ray.origin.x+ " ray.origin.y:"+ray.origin.y+ " ray.origin.z:"+ray.origin.z+" ray.direction.x:"+ray.direction.x+" ray.direction.y:"+ray.direction....
来源: Laya_社区 发布时间: 20191219
...w.com" }); wx.onSocketOpen(function (res) { // webSocket打开事件处理 console.log('websocket opened.'); var msg = JSON.stringify({ Hello: { Name: 'hi lei lei~' }}) wx.sendSocketMessage({ data: msg }); }); wx.onSocketError(function (res) { // 链接出错时的处理 console.log('webSocket fail'...
来源: Laya_社区 发布时间: 20180528
...触发的监听 this.textinput_message.on(Laya.Event.CLICK,this,()=>{ console.log("CLICK>>>"); }) this.textinput_message.on(Laya.Event.MOUSE_DOWN,this,()=>{ console.log("MOUSE_DOWN>>>"); }) this.textinput_message.on(Laya.Event.FOCUS, this, () => { console.log("FOCUS>>...
来源: Laya_社区 发布时间: 20190315
...其他地方使用会报错 module bili{ export class Test{ constructor(){ console.log("Test"); } } } 2018-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 牛唠叨 赞同来自: Chiuan 其实就是那个2.0...
来源: Laya_社区 发布时间: 20180926
...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("========================"); /**这里是运行后,在img上拖动给出的属性,没有鼠标的xy的坐...
来源: Laya_社区 发布时间: 20181031
...._text = value; } /** * 动画状态开始时执行。 */ onStateEnter() { console.log("动画开始播放了"); this._text.text = "动画状态:动画开始播放"; } /** * 动画状态更新时执行。 */ onStateUpdate() { console.log("动画状态更新了"); this._text.text = "动画状态:...
来源: Laya2.0_文档 发布时间: 20210715