大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0054 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...TMLDivElement = Laya.HTMLDivElement; var textfiled = new HTMLDivElement(); this.addChild(textfiled); textfiled.pos(10, 10); textfiled.width = 890; textfiled.style.color = "#10922a"; textfiled.style.font = "黑体"; textfiled.style.fontSize = 30; textfiled.style.valign = "middle"; var clientName = "&...
来源: Laya_社区 发布时间: 20190222
...nfo = heros[i]; if (_heroItemList[i] == null) { item = new HeroResolveItem(this.onSelectedHeroChange); _heroItemList[i] = item; } _heroItemList[i].init(heroInfo); panelHeroInfo.addChild(_heroItemList[i]); _heroItemList[i].x = i%3*190; _heroItemList[i].y = parseInt((i/3).toString()) * 155; } console....
来源: Laya_社区 发布时间: 20170321
...取当前位置 Laya.Geolocation.getCurrentPosition( Laya.Handler.create(this, this.onSuccess), Laya.Handler.create(this, this.onError) ); console.log("click"); } // 成功获取位置后触发 onSuccess(info: Laya.GeolocationInfo): void { console.log('经纬度: (' + info.longitude + '°, ' + info....
来源: Laya3.0_文档 发布时间: 20251010
...本)的4827行左右的Templet类的onComplete及parseData方法中设置this._path的位置处对_path进行路径过滤,去掉它内部包含URL.basePath的部分 __proto.onComplete=function(content){ if (this._isDestroyed){ this.destroy(); return; }; var tSkBuffer=Loader.getRes(this._skBuffer...
来源: Laya_社区 发布时间: 20190419
... - Out of bounds var roleTemp = new Templet(); roleTemp.on(Event.COMPLETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/...
来源: Laya_社区 发布时间: 20180323
...;材质 material 创建的贴图材质,这样能平铺吗? var plane = this.scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(200, 50, 1, 1))); plane.transform.translate(new Laya.Vector3(0, -0.4, 0)); var material1 = new Laya.StandardMaterial(); material1.diffuseTexture = Laya.Texture2D.lo...
来源: Laya_社区 发布时间: 20180125
...区域内。 发现问题所在,如果以ballOptions:{ layaSprite:this.skinSprite } 进行讲laya的sprite加到物理世界中,就会出现这个非正确位置碰撞。 以 var ballOptions: any = { // layaSprite: this.skinSprite, render:{ sprite:{ texture:this.imgUrl, xOffset:GameConfig.B...
来源: Laya_社区 发布时间: 20180727
.../初始化舞台 Laya.init(1334, 750); //需要切换的图片资源路径 this.monkey2 = "res/img/monkey2.png"; //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //先加载图片资源,在图片资源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.m...
来源: Laya_社区 发布时间: 20170825
...内容相关的链接 提交 2 个回复 luckybryce 赞同来自: //注:this.m_circle 为原始对象,且它是由20个扇形平成的圆环 this.m_vLastPos = this.m_circle.transform.localPosition; for(index = 0; index < 10; index++){ var circle = Laya.Sprite3D.instantiate(this.m_circle) this...
来源: Laya_社区 发布时间: 20180809
...Laya.init(700,600); Laya.loader.load('res/apes/monkey2.png',Handler.create(this,onLoaded)) } private function onLoaded():void { var texture:Texture=Loader.getRes('res/apes/monkey2.png'); var sp:Sprite=new Sprite(); var matrix:Matrix=new Matrix(); matrix.rotate(Math.PI/4); matrix.translate(150,100); ...
来源: Laya_社区 发布时间: 20170414