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

大约有 959 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)

821. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 47%]

...e3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp) { //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试,在单摄像机下时,DrawCall与三...

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

822. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 47%]

...omplete():void {     //创建动画模板dizziness      //Animation.createFrames(aniUrls("zy/" + stand + "000", 5), stand + "000");//这么写也不对      Animation.createFrames(aniUrls(stand + "000", 5), stand + "000");     Laya.stage.addChild(roleAni);     roleAni.interval = 12...

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

823. VBOX动态增加的元素没有自动布局 [ 47%]

....loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }         完整项目请见附件。 附件 : --> testvbox.rar 2017-07-25 添加...

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

824. 3d粒子只要勾了looping,每次播放完开始下一次循环的时候都会闪烁一下 [ 47%]

...("res/LayaScene_gamescene/Conventional/chest01.lh", Laya.Handler.create(this, function(sp:Laya.Sprite3D):void { console.log("111111111111111111111") var target: Laya.Sprite3D = scene3d.addChild(sp) as Laya.Sprite3D; camera.convertScreenCoordToOrthographicCoord(pos, translate); ta...

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

825. ComboBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 47%]

...LE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var cb = createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } function createComboBox(skin) { var co...

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

826. vivo小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d...

来源: Laya3.0_文档 发布时间: 20251010

827. list里面可以加入多个view吗? [ 47%]

...ya.stage.bgColor="#EEFFCC"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { list=new List(); Laya.stage.addChild(list); list.itemRender=Item; list.repeatX=1; list.repeatY=6; list.x=((Laya.stage.width-Item.WID)/2); list.y=(...

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

828. 网络通信 · LayaAir3文档 · LAYABOX [ 47%]

...or multiple files to load * @param {Root} root Root namespace, defaults to create a new one if omitted. * @param {LoadCallback} callback Callback function * @returns {undefined} * @see {@link Root#load} */ function load(filename, root, callback) { if (typeof root === "function") { callback = root; r...

来源: Laya3.0_文档 发布时间: 20250104

829. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 47%]

...6大小的地图块 this.isShow = true; Laya.loader.load(name,Laya.Handler.create(this,this.drawImg)); }  drawImg():void { var texture:Laya.Texture = Laya.loader.getRes(this.name); this.texture = texture; }  clearImage(): void{ if (this.name != "") { this.isShow = false; Laya.Loader.clearTextureRe...

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

830. drawcall优化问题 [ 47%]

...g888 • 2018-01-22 23:37 Laya.loader.load( 'res/atlas/comp.json', Handler.create(this, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; role.y = y; role.loadImage('c...

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