大约有 183 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
...ite() { Laya.loader.load("../src/img/testImg.png",Laya.Handler.create(this,graphicsImg)); } function graphicsImg() { //临时sprite var img = new Laya.Sprite(); //img.graphics.drawTexture(Laya.loader.getRes(("../src/img/testImg.png"),0,0)); //获取图片资源 var tex = Laya.loader.getRes("../src/i...
来源: Laya_社区 发布时间: 20180413
....create(this, onLoadCom)); 加载成功一个纹理后,用一个Sprite graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后加一个延时1秒,调用Loader.clearRes就清理不掉...
来源: Laya_社区 发布时间: 20161230
...ype: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg.png"),0,0); Laya.stage.addChild(s); } 新建一个工程 這样写打包之后会白屏 20...
来源: Laya_社区 发布时间: 20180808
...der中opengl函数问题 发布到vivo平台后,龙骨动画无法显示 graphics alpha 问题 H5动画和节奏的一个加速! 问题状态 最新活动: 2018-08-23 09:56 浏览: 1308 关注: 1 人
来源: Laya_社区 发布时间: 20180822
...么删除释放资源? 我这样载入场景问题出现在哪呢?? graphics alpha 问题 写了个边缘光的自定义shader,有很多问题,帮忙看一下 ios原生回调问题 问题状态 最新活动: 2018-04-26 21:09 浏览: 3221 关注: 3 人 shiyang • 2018-04-25 19:44 我每次...
来源: Laya_社区 发布时间: 20180425
... //继续画到D点 ["closePath"] //闭合路径 ]; //绘制梯形 lineSpr.graphics.drawPath(0, 0, path, {fillStyle: color}, {"strokeStyle": color, "lineWidth": "1"}); 初始得出梯形的上顶边宽度是:0.001523 像素 这时候梯形高度是1186 像素 但是 画的不完整。感...
来源: Laya_社区 发布时间: 20180717
...问layaair2.0-js 怎么用程序在list中添加多元素的item 怎么对graphics画出来的图片进行鼠标点击拖动??? Laya中Panel控件在设计模式下,添加字内容界面。可以操作出拖动效果吗?就像可以在设计模式下,看到点击效果一样. 问题状...
来源: Laya_社区 发布时间: 20160830
...好象有问题 laya1.7.9beta版 unity 粒子特效 laya插件有问题? graphics alpha 问题 问题状态 最新活动: 2020-04-18 10:12 浏览: 1572 关注: 3 人 徐小宇 • 2020-04-18 14:37 可行,解决了
来源: Laya_社区 发布时间: 20200418
...eshRenderer.simpleAnimatorTexture 没有对老的进行减少引用。 4。Graphics有对材质mmaterial添加引用,没有destroy阶段减少引用。 5。Spine2DRenderNode.source 没有考虑加载回来后,当前组件被销毁问题。 6。Value2D.clear 时候没有对 textureHost进行清...
来源: Laya_社区 发布时间: 20241230
...背景 var maskArea:Sprite = new Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); guideContainer.addChild(maskArea); //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); //...
来源: Laya_社区 发布时间: 20170315