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

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

241. Sprite optimizeScrollRect = true 似乎有问题 [ 95%]

Sprite optimizeScrollRect = true 似乎有问题 this.initMask = function () { this.mask = new Sprite(); this.mask.width = this.width; this.mask.height = this.height; this.mask.scrollRect = new Rectangle(); this.mask.scrollRect.setTo(0, 0, this.width, this.height); this.mask.optimizeScrollRect = tr...

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

242. laya.ui.Slider_API3.0 [ 95%]

...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...

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

243. 滤镜-颜色滤镜 [ 95%]

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

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

244. laya.ui.Image_API3.0 [ 95%]

...fined in laya/display/Node.ts:56 _graphics _graphics: AutoBitmap Overrides Sprite._graphics Defined in laya/ui/Image.ts:98 _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/...

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

245. laya.device.media.Video_API3.0 [ 95%]

... https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video Hierarchy Sprite Video Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name videoElement CAMERA MP4 OGG SUPPORT_MAYBY SUPPORT_NO SUPPORT_PROBABLY WEBM drawtocanv...

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

246. Spine骨骼动画点击区域偏移 获取不到width height [ 94%]

...actory.off(Laya.Event.COMPLETE, this, this.parseComplete);         var sprite = this._factory.buildArmature(0);         sprite.x = x;         sprite.y = y;         sprite.scale(0.5,0.5);         sprite.autoSize = true;         sprite.play("idle", true);         Laya.stage...

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

247. WebGL模式下,使用fillTexture填充Sprite,在Sprite移动时,会有间隔线显示并闪烁 [ 94%]

WebGL模式下,使用fillTexture填充Sprite,在Sprite移动时,会有间隔线显示并闪烁 使用Sprite作为背景,且用一张小图fillTexture填充显示,当背景移动时,会显示间隔线且会不停闪烁  this.mapBg = new Laya.Sprite(); this.mapBg.name = "map"; this.mapBg...

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

248. 滤镜-颜色滤镜 [ 94%]

...ild.x + apeTexture.width; grayApe.y = secondChild.y; } createApe() { const Sprite = Laya.Sprite; let ape = new Sprite(); Laya.stage.addChild(ape); apeTexture = Laya.loader.getRes(apePath); ape.graphics.drawTexture(apeTexture); return ape; } } new Filters_Color();module laya { import Sprite = Laya.Sp...

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

249. 获取sprite对象的 width和height为0 [ 94%]

获取sprite对象的 width和height为0  /** * 船 */ class Boat extends Laya.Sprite { private bt:Laya.Sprite; constructor() { super() this.bt = new Laya.Sprite() this.bt.loadImage("res/boat.png") this.addChild(this.bt) } } /** * 游戏背景 */ class BackGround extends Laya.Sprite { //背景图 ...

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

250. sprite 添加点击事件没反应,对sprite设置了size也没用 [ 94%]

sprite 添加点击事件没反应,对sprite设置了size也没用   附件 : --> 2017-08-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 jiehao 赞同来自: this.btn.graphics.drawTexture(window.music.btn_o...

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