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

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

561. 通过Spine工具导出缩小了比例,游戏中显示部分节点坐标比例出错 [ 53%]

...new Laya.Skeleton();         tmpSpine.load("spineFile/6402.sk",Laya.Handler.create(this,()=>{             tmpSpine.showSkinByIndex(2);//皮肤ID:1,2             tmpSpine.play("idea",true);         }),1);         tmpSpine.x = 365;         tmpSp...

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

562. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 53%]

...s" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangfu • 2018-03-16 09:55 这个是主的JS. 数据服务器都能正常接收,但是返回...

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

563. 如何解析json文件并获取某对象值? [ 53%]

...值? private jsonParse() { Laya.loader.load("res/atlas/resTest0.json", Handler.create(this, this.onLoaded), null, Loader.JSON); } private onLoaded() { var json : JSON = Laya.Loader.getRes("res/atlas/resTest0.json"); var jsTx = JSON.stringify(json); } 已经通过上面代码获取整个json内容...

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

564. 使用IDE打包图集工具出来的atlas,调用clearRes无法卸载资源 [ 53%]

...源 加载时时这样调用 Laya.loader.load("res/MainBlood.atlas", Laya.Handler.create(this, this.onAtlasLoaded), null, Laya.Loader.ATLAS); 卸载时这样 Laya.loader.clearRes("res/MainBlood.atlas");在Laya.Loader.loadedMap里查找是没有了,但是统计面板的CurMem降不下来,工程...

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

565. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 53%]

.../Conventional/JJF.lh"}];         Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //创建场景         var scene = Laya.stage.addChild(new Laya.Scene3D());         //创建相机         var camera = new Laya.Camera(0, 0.1, 1...

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

566. 3D模型旋转定位问题 [ 53%]

...是使用Laya.loader.create("model/build/warehouse1/warehouse1.lh", Laya.Handler.create(this, onComplete)); function onComplete() { //仓库原型 warehouse1 = Laya.Sprite3D.load("model/build/warehouse1/warehouse1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 90, ...

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

567. laya.media.SoundNode [ 53%]

... x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多次调用loadImage绘制不同的图片,会同时显示。 Sprite localToGlobal(point:Point, ...

来源: laya_api 发布时间: 20170422

568. 多种碰撞器形状(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 53%]

...一张桌子。 ```typescript Mesh.load("res/threeDimen/Physics/table.lm", Handler.create(this, function(mesh:Mesh):void { //....省略中间 //读取导出的桌子模型 var table:MeshSprite3D = scene.addChild(new MeshSprite3D(mesh)) as MeshSprite3D; //给桌子加刚体并且设置刚体属性 va...

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

569. 保存数据的数组在回调的时候变为undifine [ 53%]

...能console出,那个list中的数据也存在,但没渲染出。 Laya.Handler.create 回调 load方法的progress回调进的次数太少了。是我哪里设置有问题么 Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa...

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

570. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 53%]

...; item.progress = 0; totalSize += item.size; items.push(item); var progressHandler = progress ? Laya.Handler.create(null, loadProgress, [item], false) : null; var completeHandler = (complete || progress) ? Laya.Handler.create(null, loadComplete, [item]) : null; this.load(item.url, completeHandler, p...

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