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

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

141. 移动Sprite时,边缘闪烁 [ 89%]

移动Sprite时,边缘闪烁 var lastTimestamp = 0; var count = 0; var totale = 0; Laya.timer.frameLoop(1, this, function test() { var deltaTime = new Date().getTime() - lastTimestamp; lastTimestamp = new Date().getTime(); count++; totale += deltaTime; this.x += this.speed_x*deltaTime; this.y += ...

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

142. Sprite optimizeScrollRect = true 似乎有问题 [ 89%]

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

143. 请教sprite的hitArea怎么设置 [ 89%]

请教sprite的hitArea怎么设置 请教sprite的hitArea怎么设置 2017-02-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 请参考下:http://ldc.layabox.com/index.php?m=content&a...

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

144. [LayaAir3]Laya3.3废弃了filters,如何设置sprite滤镜,添加PostProcess2D,再给Process添加ColorEffect2D也不生效 [ 89%]

[LayaAir3]Laya3.3废弃了filters,如何设置sprite滤镜,添加PostProcess2D,再给Process添加ColorEffect2D也不生效 2025-08-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 layabox 赞同来自: 麻烦...

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

145. rigidBody.applyForce 物体不会移动 [ 89%]

...mera; private directionlight: Laya.DirectionLight; private character: Laya.Sprite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0, 0.2); private translateS: Laya.Vector3 = new Laya.Vector3(0, 0, -0.2); private translateA: Laya.Vector3 = new Laya....

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

146. Sprite-旋转缩放 [ 89%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var ape; var scaleDelta = 0; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.cl...

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

147. LayaAir3D中的Transform变换(JavaScript-3D基础(JS)-LayaAir3D图形系统基础概念) [ 89%]

...址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Sprite3D&name=TransformDemo))代码,首先我们 **克隆** 两个猴子(克隆的知识点会在精灵Sprite3D的章节详细讲解),来看下效果,并且在克隆后为了方便观察我们2个猴子的位置。...

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

148. MovieClip is not a constructor [ 88%]

...2017-07-18 0 0 分享 微博 QZONE 微信 18688961270 赞同来自: import Sprite=Laya.Sprite; import MovieClip=Laya.MovieClip; export class SpriteSheetTest extends Sprite{ constructor() { super(); let mc:MovieClip=new MovieClip(); } } 就这点代码,运行后就报错 2017-07-19 0 1 分享 微...

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

149. 鼠标交互-拖动 [ 88%]

...} setup() { this.createApe(); this.showDragRegion(); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(ApePath); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(ApePath); this.ape.pivot(texture.width / 2, texture.height / 2); ...

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

150. Sprite-切换纹理 [ 88%]

...1.png", monkey2Str = "res/apes/monkey2.png", monkey1Res, monkey2Res; class Sprite_SwitchTexture { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.al...

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