• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,017 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)

231. laya.display.Graphics [ 80%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames GraphicsProperties | Methods Packagelaya.displayClasspublic class GraphicsInheritanceGraphics ObjectSubclasses AutoBitmap, GraphicsGL Graphics 类用于创建绘图显示对象。Graphics可以同时绘制多个位图或者...

来源: laya_api 发布时间: 20170929

232. Sprite-显示图片 [ 80%]

...onkey2Path); let ape2 = new Laya.Sprite(); Laya.stage.addChild(ape2); ape2.graphics.drawTexture(monkey2, 100, 0); })); } } new Sprite_DisplayImage();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = La...

来源: Laya2.0_示例 发布时间: 20260303

233. hitTestPrior点击穿透 [ 80%]

...0,600,WebGL); Laya.stage.bgColor="#EEFFCC"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,300,300,"#FFFF00"); sp.size(100,100); sp.on(Event.CLICK,this,onClickSp); Laya.stage.addChild(sp); var spchild:Sprite=new Sprite(); spchild.graphics.drawRect(0,0,200,200,"#FF0000"); spchild.size(200,200);...

来源: Laya_社区 发布时间: 20170918

234. 如何绘制 sprite 拖动的路线 [ 80%]

...候可以实时的获取当前的鼠标移动轨迹,然后在配合调用graphics的drawCurves方法来绘制曲线轨迹,drawCurves的用法请参考下:http://layaair.ldc.layabox.com ... hapes 2017-02-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题...

来源: Laya_社区 发布时间: 20170211

235. Laya.loader.load 教程代码出错 [ 80%]

...x.toString() +".bmp";                          img.graphics.clear();             var txture:Texture = Laya.loader.getRes(url);             img.graphics.drawTexture(txture);             img.size(txture.width,txture.height);         }...

来源: Laya_社区 发布时间: 20170918

236. 骨骼动画-Spine事件 [ 80%]

...e.addChild(mLabelSprite); mLabelSprite.pos(mStartX, mStartY); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y: mStartY - 200 }, 1000, null, Handler.create(this, this.playEnd)) } playEnd() { mLabelSprite.removeSelf(); } } new Skelet...

来源: Laya2.0_示例 发布时间: 20260303

237. Sprite.getGraphicBounds的问题 [ 80%]

Sprite.getGraphicBounds的问题 看4张图就知道了,图片是有加载显示成功,但是在handler里面返回的参数为undefined,getGraphicBounds内容始终为0 附件 : --> 2018-11-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

来源: Laya_社区 发布时间: 20181116

238. laya.display.Animation_API3.0 [ 80%]

...nu Globals "laya/display/Animation" Animation Class Animation Animation 是Graphics动画类。实现了基于Graphics的动画创建、播放、控制接口。 本类使用了动画模版缓存池,它以一定的内存开销来节省CPU开销,当相同的动画模版被多次使用时,相比...

来源: Laya3.0_api 发布时间: 20231115

239. laya.ui.FrameClip [ 80%]

...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 表示显示对象的高度,以像素为单位。 高度默...

来源: laya_api 发布时间: 20170422

240. 输入设备-贪吃蛇(重力感应) [ 80%]

... height) { Segment.super(this); Segment.prototype.init = function() { this.graphics.drawRect(-height / 2, -height / 2, width + height, height, "#FF7F50"); } // 获取关节另一头位置 Segment.prototype.getPinPosition = function() { var radian = this.rotation * Math.PI / 180; var tx = this.x + Ma...

来源: Laya_示例 发布时间: 20260303