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

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

191. 发布ios,sprite无法设置宽高 [ 87%]

发布ios,sprite无法设置宽高 在浏览器上可以运行,但是发布到ios端,场景无法显示,并且在其他项目中,new一个Sprite或者Image的时候,不能设置宽高,只能scale,这个demo只有一个场景,一张图片,但是在app上,黑屏,什么都没...

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

192. Sprite-切换纹理 [ 87%]

...种开发语言、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_示例 发布时间: 20251130

193. 将字节数组转为图片 [ 87%]

...ng = Browser.window.URL.createObjectURL(blob);             var sp:Sprite = new Sprite();             sp.loadImage(url);             addChild(sp);             sp.pos(100, 200);             trace("url=" + url);//blob:file%3A///1c4effc4-4022-4ab5-8feb-e39ff7...

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

194. list 下 生成图片模糊 [ 86%]

...hildren(); var root = cell.getChildByName('root'); if (!root) { root = new Sprite(); root.pos(0, 0); root.name = "root"; cell.addChild(root); } 。。。。。 生成的 图片 从一个场景中回来在生成 他的 子物体 Sprite 在切换场景再回来 在生成 如此多次 自后 我的 lis...

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

195. 缓动-时间线 [ 86%]

...; Laya.stage.on(Event.KEY_DOWN, this, this.keyDown); } createApe() { const Sprite = Laya.Sprite; this.target = new Sprite(); Laya.stage.addChild(this.target); this.target.loadImage("res/apes/monkey2.png"); this.target.pivot(55, 72); this.target.pos(100,100); } createTimerLine() { const TimeLine = La...

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

196. 屏幕适配-屏幕适配 [ 86%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Text = Laya.Text; var Event = Laya.Event; var Image = Laya.Image; var WebGL = Laya.WebGL; //所有适配模式 var modes = ["noscale", "exactfit", "showall", "noborder", "full",...

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

197. 3D+2D场景截屏,在不同浏览器显示效果不一致 [ 86%]

...s = Laya.Browser.document.getElementById("layaCanvas"); var spi = new Laya.Sprite(); var spi1 = new Laya.Sprite(); var spi2 = new Laya.Sprite(); this.tempTexture2D.loadImageSource(cans, true); spi.texture = spi1.texture = spi2.texture = this.tempTexture; //创建模糊滤镜实例 var blurFilter = n...

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

198. 加了两个遮罩后的动画,帧频只有10了,有demo,有项目,有源码 [ 86%]

...ya.init(1920,950,Laya.WebGL); Laya.Stat.show(); const container = new Laya.Sprite(); Laya.stage.addChild(container); const mask = new Laya.Sprite(); mask.graphics.drawPoly(0, 0, [0, 0, 484, 0, 1483, 950, 0, 950], '#ff0000'); // container.addChild(mask); container.mask = mask; const ani = new Laya.An...

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

199. 多摄像机窗口的使用(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 86%]

...t = scene.addChild(new DirectionLight()) as DirectionLight; //加载模型 Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Handler.create(null, function(sp:Sprite3D):void { //将模型加到场景上 var layaMonkey:Sprite3D = scene.addChild(sp) as Sprite3D; })) ``` 编译运行上...

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

200. 后期处理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 86%]

...() export class Script extends Laya.Script { //获取节点 @property(Laya.Sprite) public sp: Laya.Sprite; onAwake(): void { //创建后期处理实例 this.sp.postProcess = new Laya.PostProcess2D(); //创建变色效果 let colorEffect2D = new Laya.ColorEffect2D(); //创建后期处理效果数组 ...

来源: Laya3.0_文档 发布时间: 20251010