大约有 487 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
Laya_社区(264) Laya3.0_api(65) laya_api(64) Laya2.0_api(59) Laya2.0_文档(12) Laya2.0_示例(8) Laya_示例(8) Laya3.0_文档(7)
...绘的切下来的部分,但黄色的原图一直还在,即便调用了graphics.clear()方法 这是我重绘部分的代码,我是应该用sprite.graphics去重绘,还是该调用Laya.Render.context中的方法去重绘,绘制部分代码如下(points,是我裁切后的多边形位...
来源: Laya_社区 发布时间: 20200428
...ead = new Image(); var texture = Laya.loader.getRes(heroidstr); m_herohead.graphics.drawTexture(texture); m_herohead.anchorX = 0.5; m_herohead.anchorY = 1; m_herohead.pos(m_heroPosX,m_heroPosY); m_mapbg.addChild(m_herohead); 我在代码里创建图片,可是设置锚点后,显示还是0...
来源: Laya_社区 发布时间: 20171109
...ar texture:Texture=new Texture(htmlCanvas); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture,0,0,100,100); Laya.stage.addChild(sp); sp.x=200; } } } 2017-07-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Funkyfun 相关问...
来源: Laya_社区 发布时间: 20170704
...IComponent Clip FontClip Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY autoPlay blendMode bottom cacheAs cent...
来源: Laya3.0_api 发布时间: 20231115
... Sprite TileAniSprite Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable des...
来源: Laya3.0_api 发布时间: 20231115
...报错 报错堆栈 TypeError: tex.getIsReady is not a function at Graphics.loadImage (file:///D:/zxl/2.0_stable/lfGame2.0/bin/libs/laya.core.js:11477:26) at Function.createFrames (file:///D:/zxl/2.0_stable/lfGame2.0/bin/libs/laya.core.js:23134:23) at Animation.loadImages (file:///D:/zxl/2.0_s...
来源: Laya_社区 发布时间: 20200417
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite gray : Boolean 是否变灰。Component height : Number[override] 表示显示...
来源: laya_api 发布时间: 20170929
...ent HTMLIframeElement Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha blendMode cacheAs components contextHeight contextWidth customRenderEnable destroyed displayHeig...
来源: Laya3.0_api 发布时间: 20231102
...,却无法显示图片, 使用loadIMage可以显示图片,但使用graphics.drawTexture()却无法显示图片(图片已经预加载了),求解,是最新的layaair引擎不支持graphics.drawTexture()的方法了? 2017-01-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20170117
...帧动画这里看了下源码实现,需要每帧动画都设置不同的graphics,每个graphics里保存了每帧图片贴图,这里为什么不是公用大贴图,修改渲染uv来实现啊? 公用贴图不是在最终渲染的时候 好合并渲染批次吗? 2017-06-29 添加评论 免...
来源: Laya_社区 发布时间: 20170629