大约有 264 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0059 秒)
...gin * @param visibleLineCount */ renderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true); var ctxFont = (this.italic ? "italic " : "") + (this.bold ? "bold " : "") + this.fontSize + "px " + (Browser.onIPhone ? (laya.display.Text._fontFamilyMap[this.font] || this.font...
来源: Laya_社区 发布时间: 20180417
...法绘制图片并添加到舞台 Laya.loader.load(Res,Handler.create(this,graphicsImg)); })(); function graphicsImg() { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.stage.addChild(img); } })(); ``` 运行...
来源: Laya2.0_文档 发布时间: 20210715
...prite(); this.bar = new Sprite(); this.bar.x = 15; this.bar.y = 2; this.bg.graphics.drawTexture(texture1, 0, 0, 180, 21); this.bar.graphics.drawTexture(texture2, 0, 0, 155, 12); this.addChild(this.bg); this.addChild(this.bar); } /** * 修改当前状态 */ _proto.changeValue = function(value){ this....
来源: Laya_社区 发布时间: 20160803
...ite(); this.sprite.on('mousedown', this, on_down); this.sprite.graphics.drawCircle(x, y, r2, color2, color2, 2); this.sprite.graphics.drawCircle(x, y, r1, color1, color1, 0); function on_down(event) { console.log("_____ kbRing2\n"); } } function laya_test()...
来源: Laya_社区 发布时间: 20161221
...尽量要避免设置mask,成本比较高,这个需求也可以通过 graphics的drawTriangles来实现drawTriangles(texture:Texture, x:number, y:number, vertices:Float32Array, uvs:Float32Array, indices:Uint16Array, matrix:Matrix = null, alpha:number = 1, color:string = null, blendMode:string = ...
来源: Laya_社区 发布时间: 20190704
...并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),150,50); //添加到舞台 Laya.stage.addChild(this....
来源: Laya2.0_文档 发布时间: 20210715
...点3d射线碰撞和UI点击穿透的问题 mask在layaplayer中有问题 graphics alpha 问题 问题状态 最新活动: 2018-07-06 17:58 浏览: 633 关注: 2 人 158*****197 • 2018-07-06 17:50 我用的是js写的,看laya封装的tween 里面只有执行完成之后成功回调的参数,...
来源: Laya_社区 发布时间: 20180706
...呢? 2.2.0beta4 发布微信小游戏,安卓设备加载场景黑屏 graphics alpha 问题 关于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 unity到导出场景加载时抛异常,不知所措 小游戏项目 加载有中文的json文件 报错 问题状态 最新...
来源: Laya_社区 发布时间: 20161204
请教时间轴动画,想要动态改变里面GraphicNode的skin。怎么实现? 也就是说我能不能判断播到第几帧的时候 改变GraphicNode的skin地址呢? 2017-12-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20171204
...代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用iphone手机的safari扫码功能运行项目 3秒中之...
来源: Laya_社区 发布时间: 20191215