大约有 110 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0030 秒)
...r sprite:Laya.Sprite = new Laya.Sprite(); sprite.graphics.drawCircle(0, 0, 250, null, "#ff0000", 4); sprite.graphics.drawCircle(0, 0, 350, null, "#ff0000", 4); sprite.pivotX = sprite.width * 0.5; sprite.pivotY = sprite.height * 0.5; sprite.x = this.width * 0.5; sprite.y = this.height * 0.5; this.add...
来源: Laya_社区 发布时间: 20180708
...); this.ape.pos(100,50); this.apeGlow = this.createApe(); this.apeGlow.pos(250,50); this.apeShadow = this.createApe(); this.apeShadow.pos(400,50); this.GlowFilter(); this.ShadowFilter(); } private createApe(): Sprite { var ape = new Sprite(); ape.loadImage(this.apePath); Laya.stage.addChild(ape); re...
来源: Laya2.0_文档 发布时间: 20210715
...题,Canvas下正常显示 img.scrollRect = new Rectangle(0, 0, 150, 250); 如果img的父级容器(或者父父。。。级)scaleX设置为-1,就会导致此问题 demo见附件 附件 : --> testUI5.rar 2017-08-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20170802
...端 //建立连接 this.socket.connectByUrl("wss://192.168.1.250:5000/websocket/"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); t...
来源: Laya_社区 发布时间: 20180510
...ew Laya.Camera(0, 0.1, 550))); camera.transform.translate(new Laya.Vector3(250, 1, 0)); var rotation = new Laya.Quaternion; Laya.Quaternion.lookAt(camera.position, new Laya.Vector3(0, 0, 0), camera.up, rotation); camera.transform.rotation = rotation; camera.clearColor = new Laya.Vector4(1, 1, 1, 1);...
来源: Laya_社区 发布时间: 20170504
...NpcLayer.super(this); //文字滚动 // m_talkScroll = new UIScroll(610.0, 250); // m_talkScroll.pos(0, 0); // this.addChild(m_talkScroll); // this.onAction(); // this.onAction = function(){ // console.log("-------------hhhhhhhhhhh "); // } //第一种解决方法 onAction(); function onAction(){ co...
来源: Laya_社区 发布时间: 20171127
...果要停在第6帧(F),使用帧数转时间公式:T = F / R * 1000 = 250 目前在网上搜到的解决停留问题的方法大致两种: 1.源文件在指定帧添加事件,然后通过监听label事件来停止动画 缺陷:必须要先播放动画才能获取事件,也就是说如...
来源: Laya_社区 发布时间: 20181115
...关结果 已邀请: 与内容相关的链接 提交 2 个回复 xiaobear250 赞同来自: cuixueying 请大家善用laya文档全库搜索:http://laya.4374.net 2017-03-30 1 0 分享 微博 QZONE 微信 layabox 赞同来自: 请大家注意! 2017-01-07 0 0 分享 微博 QZONE 微信 为什么被...
来源: Laya_社区 发布时间: 20170105
...折叠? 0 个回复被折叠 要回复问题请先登录 发起人 xiaobear250 相关问题 2.0一不小心删了bin目录下的某个场景json文件。。竟然无法自动生成了? unity导出粒子文件问题 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间...
来源: Laya_社区 发布时间: 20170115
...示位置在可拖拽区域之内 sp.pivot(sp.width/2,sp.height/2); sp.pos(250,450); Laya.stage.addChild(sp); //为需要滑动的对象添加down,down下开始move,up时移除move和up事件 sp.on(Event.MOUSE_DOWN,this,onDown); Laya.stage.on(Event.MOUSE_UP,this,onUp); } private function onUp():...
来源: Laya_社区 发布时间: 20170106