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

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

331. LayaAir有action相关的对象或者函数吗? [ 63%]

...看demo中运动都是通过修改坐标实现的,那样如果我想让sprite向一个不固定的坐标移动,只能每帧重新计算下坐标吗?引擎本身有没有moveto之类的对象和函数吗? 2016-06-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

332. laya.ani.bone.Skeleton_API3.0 [ 63%]

...动画由Templet,AnimationPlayer,Skeleton三部分组成。 Hierarchy Sprite Skeleton Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha...

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

333. 代码创建精灵监听不到事件? [ 63%]

...监听不到事件? var boxstr = "ui/buildsmall.png"; var box = new Laya.Sprite(); var texture = Laya.loader.getRes(boxstr); box.graphics.drawTexture(texture); var arr = {data: StorageRoom.map_storageData[0][0],tag:0}; box.on(Laya.Event.MOUSE_UP,this,this.onclick,[arr]);   var _proto = StorageUIL...

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

334. 关于环形进度条,进度不能重置问题 [ 63%]

...per(this); this.angle = 0; Laya.timer.loop(200,this,this.loadProgress) var Sprite = Laya.Sprite; this.box = new Sprite(); this.box.cacheAs = "bitmap"; this.box.pos(0,0); this.say.addChild(this.box); this.draw = new Sprite(); this.box.addChild(this.draw); this.draw.graphics.drawPie(this.say.width/2, ...

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

335. 动画不显示 [ 63%]

....utils.Browser;     import laya.utils.Timer;     import laya.display.Sprite;     import laya.net.Loader;     import laya.ui.TextArea;     import laya.resource.Texture;     import laya.maths.Point;     import laya.utils.Tween;     import laya.d3.resource.models.PrimitiveMesh; ...

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

336. laya.media.VideoNode_API3.0 [ 63%]

... https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video Hierarchy Sprite VideoNode Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alp...

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

337. laya.ui.UIComponent_API3.0 [ 63%]

...lize > createChildren > initialize > 组件构造函数 Hierarchy Sprite UIComponent Box ISelect Button Clip ColorPicker Label Image Slider ScrollBar ComboBox ProgressBar TipManager OpenDataContextView Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url au...

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

338. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 62%]

...: ```javascript //初始化引擎 Laya.init(1136,640); var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){...

来源: Laya2.0_文档 发布时间: 20210715

339. _calculateCacheRect函数有bug [ 62%]

... null;             return this;         }   _calculateCacheRect(sprite, tCacheType, x, y) {             var _cacheStyle = sprite._cacheStyle;             if (!_cacheStyle.cacheRect)                 _cacheStyle.cacheRect = Rectangle.create();             var tRec;...

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

340. 怎么进行椭圆绘制 [ 62%]

... lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 富文本下划线绘制bug 怎么检测点是否在 graphics所绘制的区域内 小游戏开放数据域下使用Laya.List绘制了排行榜,但是触摸没有滚...

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