大约有 1,017 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)
Laya_社区(720) Laya3.0_api(64) Laya2.0_api(59) laya_api(56) Laya2.0_文档(43) Laya2.0_示例(32) Laya_示例(32) Laya3.0_文档(11)
...n); } function createCoralRect() { var coralRect = new Sprite(); coralRect.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height / 2, "#FF7F50"); //设置名称 coralRect.name = "珊瑚色容器"; coralRect.size(Laya.stage.width, Laya.stage.height / 2); Laya.stage.addChild(coralRect); coralRec...
来源: Laya_示例 发布时间: 20260303
...rivate function init(e:Event=null):void { var sp1:Sprite=new Sprite(); sp1.graphics.beginFill(0xFF00FF); sp1.graphics.drawRect(100,100,200,200); sp1.graphics.endFill(); addChild(sp1); sp1.addEventListener(MouseEvent.CLICK,onSp1); var sp2:Sprite=new Sprite(); sp2.graphics.beginFill(0xFFFF00); sp2.gra...
来源: Laya_社区 发布时间: 20151102
graphics.drawTexture黒块问题 自己用Laya.Sprite.graphics.drawTexture实现的大地图渲染, 开始显示正常,后面地图块(256x256)加载多了就出现黒块闪烁,有大神知道什么原因吗? 附件 : --> 2017-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20171106
...形 ### 一、用drawRect方法绘制矩形 在API中搜索`laya.display.Graphics`类可以查看到该API的各种矢量绘图方法。其中"drawRect();"方法用于绘制矢量矩形。该方法的详细说明如下图所示:  (图1) 下面我们用LayaAir引...
来源: Laya2.0_文档 发布时间: 20210715
如何使用graphics绘画虚线 如何使用graphics绘画虚线?类似 CanvasRenderingContext2D.setLineDash() 那种。如没有实现,能否把这个方法加上? 2017-04-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20170423
...var textureUrl = (flag = !flag) ? texture1 : texture2; // 更换纹理 ape.graphics.clear(); var texture = Laya.loader.getRes(textureUrl); ape.graphics.drawTexture(texture, 0, 0); // 设置交互区域 ape.size(texture.width, texture.height); } })();module laya { import Sprite = Laya.Sprite; import ...
来源: Laya_示例 发布时间: 20260303
...Classes | Index | Frames No Frames RenderObjectMethods Packagelaya.d3.graphicsClasspublic class RenderObjectInheritanceRenderObject Object ... Public Methods MethodDefined By RenderObject(owner:Sprite3D)RenderObjectConstructor DetailRenderObject()Constructorpublic function RenderObject(own...
来源: laya_api 发布时间: 20170318
...ix()); var matrix:Matrix = new Matrix(); matrix.rotate(Math.PI/4); sprite_.graphics.beginBitmapFill(bitmap_, matrix, true); sprite_.graphics.drawRect(100, 50, 200, 90); sprite_.graphics.endFill(); addChild(sprite_); 2017-04-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20170414
...blic/Protected All Inherited Externals Only exported Menu Globals "laya/d3/graphics/StaticBatchManager" StaticBatchManager Class StaticBatchManager StaticBatchManager 类用于静态批处理管理的父类。 Hierarchy StaticBatchManager Index Constructors constructor Methods combine Constructors c...
来源: Laya3.0_api 发布时间: 20231102
怎么对graphics画出来的图片进行鼠标点击拖动??? 我把示例的内容进行了修改,我不想加载个图片然后移动图片,我只是想画个圆圈然后鼠标可以拖动它移动!!!!但是我改了一下官网上的例子,还是无法移动。。。。。...
来源: Laya_社区 发布时间: 20171106