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

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

41. 分享一个Shader版的CoolDown实现 [ 83%]

... Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); ----------------------源码-------------------------- imp...

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

42. 事件绑定不触发bug [ 83%]

...定不触发bug         var Event   = Laya.Event;         var Sprite  = Laya.Sprite;         var Stage   = Laya.Stage;         var Texture = Laya.Texture;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var WebGL   = Laya.WebGL;...

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

43. 监听按键事件怎么写呀,TS的 [ 82%]

...Blur事件监听不到 Animation如何加点击事件 关于遍历产生的sprite的点击事件,急,大神帮看哈 微信小游戏与加载图片时不会触发erroe事件 List滑动条会引起单元格上的按钮点击后多次触发点击事件 3d物理不能触发onCollisionEnter事件 ...

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

44. 关于graphics镂空的问题https://ask.layabox.com/question/139 [ 82%]

...,LayaAir的新手引导请参考:https://layaair.ldc.layabox.com/demo/?Sprite_Guide 2017-07-10 0 3 分享 微博 QZONE 微信 a4362928 赞同来自: 仔细看了一下HitArea api,其实可以使用HitArea的hit与unHit属性结合destination-out实现flash中两次draw镂空可点击穿透完...

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

45. Sprite-切换纹理 [ 82%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var texture1 = "../../res/apes/monkey2.png"; var texture2 = "../../res/ap...

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

46. webgl模式下对Panel组件旋转时Panel子对象显示错误的BUG! [ 82%]

...a.init(1280,720,Laya.WebGL);//有问题 console.log(Laya.version); var testSpriteRotation:PanelRotationTest = new PanelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new PanelRotationTest(Laya.Panel); tes...

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

47. 性能测试-虫子(慎入) [ 82%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var Rectangle = Laya.Rectangle; var WebGL = Laya.WebGL; var texturePath = "../../res/tinyMaggot.png"; var padding = 100; var ma...

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

48. 关于mouseThrough设计原理问题? [ 82%]

...eThrough设计原理问题? 关于 mouseThrough 的设计原理,如果sprite对象没有设置点击事件(如 Event.CLICK),那么 sprite.mouseThrough = false;设置是没有效果的,这样设计是不是有问题?var a:Sprite = new Sprite(); a.graphics.drawRect(0,0,200, 200, "#00ff00"...

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

49. 飞机大战地图滚动报错,麻烦看下? [ 81%]

...null; var box = null; function bg_rolling() {     box = new laya.display.Sprite();     Laya.stage.addChild(box);     bg1 = new laya.display.Sprite();     bg1.loadImage("res/bg1.png");     box.addChild(bg1);     bg2 = new laya.display.Sprite();     bg2.loadImage("res/bg1.png");     bg...

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

50. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 81%]

... > 图片的显示是游戏开发基础,本篇从API到示例分别介绍Sprite.loadImage与Graphics.drawTexture两种显示图片的方法。 ## 1、用loadImage方法显示与切换图片 ### 1.1 loadImage API概述 在API文档中搜索laya.display.Sprite,可以找到loadImage()方法,如...

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