大约有 360 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0062 秒)
... mesh = Sprite3D.load('resources/shuipao.lh'); this.addChild(mesh); mesh.on(Event.HIERARCHY_LOADED, this, this.OnHierarchyLoaded); let ani_names = this.ani_names; let anies = this.anie...
来源: Laya_社区 发布时间: 20170608
...gressBar.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(this.progressBar); Laya.timer.loop(100, this, this.changeValue); }); } // 模拟进度条加载 private changeValue(): void { if (this.progressBar.value >= 1) this.progressBar.value = 0; this.progressBar.value += ...
来源: Laya3.0_文档 发布时间: 20240910
...// Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("render"); var l = [ 0, 0, 0, -(Laya.Browser.height >> 1), (Laya.Browser.width>>1), -(Laya.Browser.height>>1), Laya.Browser.width, -(Laya.Browser.height>>1),...
来源: Laya_社区 发布时间: 20180602
...label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } this.owner.addChild(label); return label; } } 效果预览: (图2-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2024-09-10 16:27:03 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20240910
... txt.fontSize = 30; txt.wordWrap = true; txt.color = "#FF9632"; Laya.stage.addChild(txt); var test:Object = JSON.parse('{"id": 0, "name": "Chen"}'); traceMsg(test['id']); traceMsg(test['name']); var jsonURL:String = "res/json/config.json"; traceMsg("加载: " + jsonURL); Laya.loader.load(jsonURL, Ha...
来源: Laya_社区 发布时间: 20180227
...nerHTML="<img src='res/atlas/test.png'/>" Laya.stage.addChild(div); } TypeError: Illegal constructor laya.core.js:11687 at Function.getInstance (file:///D:/work/test2/bin/libs/laya.core.js:11687:24) at Function.getInstance (file:///D:/work/test2/bin/libs/lay...
来源: Laya_社区 发布时间: 20190926
... mc:Laya.MovieClip = Laya.loader.getRes("res/swf/star.swf"); // Laya.stage.addChild(mc); } } } new laya.Loader_MultipleType(); 2018-02-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 11 个回复 qian 赞同来...
来源: Laya_社区 发布时间: 20180203
...ar img = new Laya.Sprite(); img.loadImage('images/item_5.png'); Laya.stage.addChild(img); img.on(Laya.Event.MOUSE_DOWN, img, onStartDrag); function onStartDrag(){ console.log(this); clickIndex++; msgDiv.html('图片选中了' + clickIndex + '次'); // img.startDrag(); } // Laya.stage.alignH = Laya.S...
来源: Laya_社区 发布时间: 20170427
...; { this.car = sp.getChildAt(0).getChildAt(0) as Laya.Sprite3D; this.scene.addChild(this.car); this.rig = (this.car.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D) })); 源 • 2019-01-11 20:47 @叶子:不算。这样只是给了刚体一个索引而已 叶子 • 2019-01-11 20:54 @源:额,我...
来源: Laya_社区 发布时间: 20190111
... /* ……省略若干代码 */ //创建盒型MeshSprite3D let box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))) as Laya.MeshSprite3D; //创建静态碰撞器 let staticCollider:Laya.PhysicsCollider = box.addComponent(Laya.PhysicsCollider); //设置为触发器,...
来源: Laya2.0_文档 发布时间: 20210715