大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0138 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...么写 之前我个人写的 不知道是不是在这个里面 var xhr = new XMLHttpRequest(); xhr.open("GET",url, true) xhr.setRequestHeader("Accept", "*/*"); xhr.setRequestHeader("Content-Type", "application/json"); 还是说用参考代码里的HttpRequest() var xhr = new Laya.HttpRequest(); xhr....
来源: Laya_社区 发布时间: 20180704
...); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); this.body.loadImage("war/ball.png"); this.body.pivot(12,12); } this.addChild(this.body); Laya.timer.frameLoop(1,this,this.animate); } private animate(e):void{ this.body.rotation += 10; } } class Main{ priv...
来源: Laya_社区 发布时间: 20171108
...tring(treeData); //调用这一句一直是undefined // let tree = new Laya.Tree(); // tree.scrollBarSkin = ""; // tree.itemRender = initTreeItem(); // tree.xml = treeData; // tree.size(300, 300) // tree.x = (Laya.stage.width - tree.width) / 2; ...
来源: Laya_社区 发布时间: 20180726
...clickFun); } private function clickFun():void { if( clip == null ){ clip = new Clip("1.png",6,6); Laya.stage.addChild(clip); clip.play(); }else{ clip.dispose(); clip = null; } } 请官方给一个解决方案 目前我把weakobject里的数值设置为null了 但感觉官方改比较好! 2017-11-2...
来源: Laya_社区 发布时间: 20171128
...回复问题请先登录 发起人 ljy328803417 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 使用了u3D导出来的粒子,不停的显示移除并销毁其克隆对象,统计面板的显存和内存就会显示成负数 new La...
来源: Laya_社区 发布时间: 20171107
...s Laya.Scene; // scene.enableLight = true; Laya.stage.addChild(scene); } } new GameMain();工程文件在附件,运行后报错 Uncaught Error: LoaderManager:unknown file(G:/LayaTest/bin/TestScene/TestScene.ls) extension with: ls. at LoaderManager.__proto._create (laya.core.js:12387) a...
来源: Laya_社区 发布时间: 20171227
...型MeshSprite3D ```typescript var box: MeshSprite3D = this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))) as MeshSprite3D; ``` - 2.为精灵添加CannonRigidbody3D组件 ```typescript var rigidBody: CannonRigidbody3D = box.addComponent(CannonRigidbody3D); ``` - 3.设置碰撞...
来源: Laya2.0_文档 发布时间: 20210714
...吧size那行代码注释掉就正常了. function createImg(){ var img = new Laya.Sprite(); var r = Math.random(); var s = r > 0.66 ? "img/flower1.jpg" : r > 0.33 ? "img/flower2.png" : "img/flower3.jpg" img.loadImage(s); img.on(Laya.Event.CLICK, this, () => { img.y -= 10; }) img.pos(100, 3...
来源: Laya_社区 发布时间: 20180412
...dChild(equipSkinedMeshSprite3D); equipSkinedMeshSprite3D.transform.scale = new Laya.Vector3(2.54, 2.54, 2.54); 补充: 衣服单独添加到场景没有问题, 添加到人物上,就会出现缩小。 2018-09-06 增加了Demo,界面上有3个按钮...
来源: Laya_社区 发布时间: 20180905
...adingBar_anim.on(Event.CLICK,this,()=>{ var loading : Onloading = new Onloading(); loading.popup(true); Laya.timer.loop(100, this, loading.changeValue); }); 进度条代码: import Handler = Laya.Handler; export class Onloading extends ui.LoadingUI{ constructor(){ ...
来源: Laya_社区 发布时间: 20180524