大约有 2,783 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0076 秒)
Laya_社区(2254) Laya2.0_文档(123) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(51)
发布ios,sprite无法设置宽高 在浏览器上可以运行,但是发布到ios端,场景无法显示,并且在其他项目中,new一个Sprite或者Image的时候,不能设置宽高,只能scale,这个demo只有一个场景,一张图片,但是在app上,黑屏,什么都没...
来源: Laya_社区 发布时间: 20190402
...种开发语言、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
...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
...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
...; 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
...种开发语言、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
...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
...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
...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
...() 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