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

大约有 567 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0134 秒)

271. 如何做一个心形的进度条? [ 66%]

...何做一个心形的进度条?   类似这样的。。我有试过用sprite遮罩处理。。但是发现添加好的sprite遮罩在代码中无法移动它的坐标。。导致没有进度条效果? 附件 : --> 2017-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

272. laya.html.dom.HTMLIframeElement_API3.0 [ 66%]

... = false Inherited from AnimationBase._ownGraphics Defined in laya/display/Sprite.ts:245 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:631 _skinBaseUrl _skinBaseUrl: string Inherited from AnimationBase._skinBaseUrl Defined in laya/display/Sprite.ts:269 如果节点...

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

273. 求问sprite放大后,graphics绘制的图像位置偏移 [ 66%]

求问sprite放大后,graphics绘制的图像位置偏移 let sprite: Sprite = new Sprite(); let texture: Laya.Texture = Laya.loader.getRes(this.skin_img1); sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); sprite.size(texture.width, texture.height); let x: number = 300; ...

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

274. sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? [ 66%]

sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? 代码: import TiledMap = Laya.TiledMap; class GameMain{ private tMap:TiledMap; constructor() { Laya.init(935, 224, Laya.WebGL); this.tMap = new TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage...

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

275. laya.display.Animation [ 66%]

...elaya.displayClasspublic class AnimationInheritanceAnimation AnimationBase Sprite Node EventDispatcher Object Animation 是Graphics动画类。实现了基于Graphics的动画创建、播放、控制接口。 本类使用了动画模版缓存池,它以一定的内存开销来节省CPU开销,当...

来源: Laya2.0_api 发布时间: 20190513

276. laya.device.media.Video [ 66%]

...| Events Packagelaya.device.mediaClasspublic class VideoInheritanceVideo Sprite Node EventDispatcher Object Video将视频显示到Canvas上。Video可能不会在所有浏览器有效。 关于Video支持的所有事件参见:http://www.w3school.com.cn/tags/html_ref_audio_video_dom.asp。 注意...

来源: Laya2.0_api 发布时间: 20190513

277. 2D物理-复合碰撞器 [ 66%]

...r.width / 2, posy = Laya.Browser.height / 2; let box = this.box = new Laya.Sprite(); box.size(width + height * 2, width + height * 2); box.pivot(box.width / 2, box.height / 2); box.pos(posx, posy); Laya.Laya.stage.addChild(box); let boxBody = box.addComponent(Laya.RigidBody); let box1Shape = box.add...

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

278. drawcall性能优化,sprite绘制保存为新纹理 [ 66%]

drawcall性能优化,sprite绘制保存为新纹理 我现在场景里面有 30多个sprite,这个sprite由2个图片合成,中间应用了缩放,透明度,遮罩,最后面应用到场景时调用了80多个drawcall,这样对性能的影响就比较明显了。我在论坛上搜索过...

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

279. laya.html.dom.HTMLDivElement_API3.0 [ 66%]

...vElement=new HTMLDivElement(); div.innerHTML = "adivspanspan2p"; Hierarchy Sprite HTMLDivElement HTMLIframeElement Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha ble...

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

280. 小游戏导入手机后Sprite.Mask没有正常显示 [ 66%]

小游戏导入手机后Sprite.Mask没有正常显示 在电脑上,微信开发工具里好好的,导入手机里就不行了- -   Laya.loader.load(url, Handler.create(this, function () { var t = Laya.loader.getRes(url) var sp = new Sprite() sp.graphics.drawTexture(t, 0, 0, 80, 80) that.addChi...

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