大约有 963 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0061 秒)
... init() { //这段注释掉,imgMask则正常显示。 let bigMask:Laya.Sprite = new Laya.Sprite(); bigMask.graphics.drawRect(0, 0, 300, 200, "#ffffff"); this.mask = bigMask; // let imgMask:Laya.Sprite = new Laya.Sprite(); imgMask.graphics.drawRect(0, 0, 100, 300, "#ffffff"); this.img.mask = imgMas...
来源: Laya_社区 发布时间: 20190722
...s = Laya.Browser.document.getElementById("layaCanvas"); var spi = new Laya.Sprite(); var spi1 = new Laya.Sprite(); var spi2 = new Laya.Sprite(); this.tempTexture2D.loadImageSource(cans, true); spi.texture = spi1.texture = spi2.texture = this.tempTexture; //创建模糊滤镜实例 var blurFilter = n...
来源: Laya_社区 发布时间: 20191230
...ur事件监听不到 加载到舞台的3D模型不显示贴图 如何设置Sprite的宽高和点击区域? 使用了u3D导出来的粒子,不停的显示移除并销毁其克隆对象,统计面板的显存和内存就会显示成负数 关于遍历产生的sprite的点击事件,急,大神...
来源: Laya_社区 发布时间: 20181109
...uide/help3.png", tipx: 900, tipy: 300 } ]; var Handler = Laya.Handler; var Sprite = Laya.Sprite; var HitArea = Laya.HitArea; var step = 0; Laya.init(1285, 727, Laya.WebGL); var stage = Laya.stage; var loader = Laya.loader; stage.bgColor = "#00ffff"; stage.alignH = "center"; stage.alignW = "middle"; ...
来源: Laya_社区 发布时间: 20171031
...动态变换位置和缩放时,会有线条,并未遮罩完整 获取Sprite位置问题 设置pivot后,精灵位置显示位置不正确 socket.io 打包之前layaair,网页都是正常,构建xcode项目之后连接不上 如何获取和设置scrollbar的滚动位置 子节点的 getChildInd...
来源: Laya_社区 发布时间: 20170713
...动画名称呢?或者所有的AnimationClip呢? 关于遍历产生的sprite的点击事件,急,大神帮看哈 Animation 的createFrames 使用已经加载的图集缓存动画失败 【BUG备忘录】关于Tween动画无法正常作用问题-解决办法 为什么给Sprite容器添加点...
来源: Laya_社区 发布时间: 20180523
...有办法获取到某个元素相对可视区域的坐标? 比如某个Sprite,我定位是相对舞台(0,0),但实际相对可视区域应该是(0,导航条高)? 2017-11-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20171101
... Victor 赞同来自: transformPoint(globalPoint:Laya.Point,localSp:Laya.Sprite):Laya.Point{ return localSp.globalToLocal(globalPoint,true); }globalPoint: 绿色框的坐标 -- 舞台中央坐标(Laya.stage.width*.5,Laya.stage.height*.5) localSp:黑框容器对象 直接带入上面方法即可...
来源: Laya_社区 发布时间: 20180502
...ya.Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; var img = new Laya.Sprite(); img.loadImage('images/item_5.png'); Laya.stage.addChild(img); img.on(Laya.Event.MOUSE_DOWN, img, onStartDrag); function onStartDrag(){ console.log(this); clickIndex++; msgDiv.html('图片选中了' + clickIndex + '...
来源: Laya_社区 发布时间: 20170427
Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 private _initView():void { if(this._objectInfo.templateInfo.type == "hole") { this._body = new Sprite(); this._body.graphics.drawCircle(0, 0, this._objectInfo.templateInfo.width, "#ff0000"); this._body.width = this._objectInfo....
来源: Laya_社区 发布时间: 20180308