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

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

81. new Sprite().blendMode模式选择问题 [ 91%]

new Sprite().blendMode模式选择问题 API上描述目前只支持"lighter",可是我看官方的新手引导的引擎示例写的是另一种模式,在论坛搜了一下,JS文件实际是有好几种模式,后续升级文档能否将几种都注明清楚,对新手很不友好 2018-03-1...

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

82. 如何实现3d遮罩效果? [ 91%]

...框范围内显示,红框范围外不显示应该如何实现? 或者Sprite3D是否有方法能够将当前渲染导出到Sprite显示的方法呢? 附件 : --> 2017-02-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

83. 透明区域点击问题 [ 91%]

透明区域点击问题 var sprite0 = new Sprite(); sprite0.graphics.drawTexture(Loader.getRes("comp/image.png")); sprite0.pos(10, 10); sprite0.mouseEnabled = true; sprite0.name = 'sprite0'; Laya.stage.addChild(sprite0); sprite0.on(Event.CLICK, this, handler_click); 怎么让sp透明区域不可...

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

84. Sprite-根据数据绘制路径 [ 91%]

...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Sprite_DrawPath { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV =...

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

85. 滤镜-发光滤镜 [ 91%]

...; } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.graphics.drawTexture(texture); this.ape.x = (Laya.stage.width - texture.width) / 2; this.ape.y ...

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

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

...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

87. 请问一下,怎么将下面这段AS3代码翻译成LayaAir的API [ 91%]

...页效果移植过来。我发现LayaAir没有BitmapData的draw方法 var sprite_:Sprite = new Sprite(); var bitmap_:BitmapData = new BitmapData(_loader.width, _loader.height); bitmap_.draw(_loader, new Matrix()); var matrix:Matrix = new Matrix(); matrix.rotate(Math.PI/4); sprite_.graphics.beginBitm...

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

88. LayaAir3D中的Transform变换(TypeScript-3D基础(TS)-LayaAir3D图形系统基础概念) [ 91%]

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

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

89. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 91%]

# Sprite3D添加组件或脚本 ###### **version :2.7.0beta Update:2020-6-12** **Component** 组件,是附加到所有3D对象的内容的基类。在给物体添加组件时,需要物体使用`addComponent`方法。 ![](img/1.png)(图1) **Script3D** 这是3D世界中的脚本,继承自组件...

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

90. 其他引擎的Demo-Example_21 [ 91%]

...Laya.stage.on('mouseup', this, this.onMouseUp); } createCanvases() { const Sprite = Laya.Sprite; let graphicsCanvas = new Sprite(); Laya.stage.addChild(graphicsCanvas); let liveGraphicsCanvas = new Sprite(); Laya.stage.addChild(liveGraphicsCanvas); liveGraphics = liveGraphicsCanvas.graphics; canvasG...

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