大约有 262 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0054 秒)
...static GameStart:GameStart; GameMain.GameStart=new GameStart(); Laya.stage.addChild(GameMain.GameStart); 报错:file: 'file:///e%3A/LAYABOX/CaiCi/src/GameMain.ts' severity: '错误' message: 'Argument of type 'GameStart' is not assignable to parameter of type 'Node'. Property '_childs' is missing ...
来源: Laya_社区 发布时间: 20170826
...3D = Laya.Sprite3D.load("res/Coin/layaScene.lh") as Laya.Sprite3D; scene.addChild(temp); temp.on(Laya.Event.HIERARCHY_LOADED,this,()=> { this.model = Laya.MeshSprite3D.instantiate(temp,scene) as Laya.MeshSprite3D; if(index == 0) { this.model.transform.position = new Laya.Vector3(0.8...
来源: Laya_社区 发布时间: 20180827
...错 我用 var p:HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(p); p.href = "test.html"; p.y = 200; 一执行就报错是为什么啊?错误如下: Utils.parseXMLFromString=function(value){ var rst; value=value.replace(/>\s+</g,'><'); rst=(new DOMParser()).parseFro...
来源: Laya_社区 发布时间: 20180103
...里怎么调都是单一色块呢? var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(10, 10))) as Laya.MeshSprite3D; // box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); // var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); //...
来源: Laya_社区 发布时间: 20181030
...); sp2.x = 300; sp2.graphics.drawTexture(_texture,0,0,100,100); Laya.stage.addChild(sp2); 文档说好像可以 报错了。 this.bitmap.activeResource is not a function 有其他的方法将一个canvas的内容绘制到另外一个canvas吗 附件 : --> 2017-11-13 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20171113
...3d示例场景加入第二个灯光会覆盖第一个 创建第二个灯光addChild,第一个灯光无效,请问这个引擎只能支持一个灯光吗?两个都是平行光。 谢谢 2017-04-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20170414
...; function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这样写的 var background = (function (_super) { function background() { background.super(this); } Laya.class(background,"background",_super); return background; })(ui.backgrou...
来源: Laya_社区 发布时间: 20180129
...let tex = Laya.loader.getRes(path); let sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.graphics.drawTriangles( tex, 100, 0, new Float32Array([0,0,1,0,1,1,0,1]), new Float32Array([0,0,1,0,1,1,0,1]), new Uint16Array([0,1,2,2,3,0]) ); sp.graphics.drawImage(tex, 100, 0); })); } } new Sprite_Display...
来源: Laya_社区 发布时间: 20190829
...ew Animation(); this.aniFighter.loadAtlas(this.strAniConfPath); Laya.stage.addChild(this.aniFighter); this.aniFighter.interval = 100;//30;//设置播放间隔30毫秒 this.aniFighter.index = 1;//当前播放索引 this.aniFighter.play();//播放图集动画 this.aniFighter.loop = false; //获取动...
来源: Laya_社区 发布时间: 20181023
...loadAtlas("res/atlas/atlasLight.json",null,"play"); ani.play(); Laya.stage.addChild(ani); 有的开发者会发现,如果loadAtlas方法使用了模板名称,使用Loader.clearRes无法彻底清理掉animation的所有缓存,这个是主要是因为,资源虽然移除了,但是模板动...
来源: Laya_社区 发布时间: 20161129