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

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

891. 加载unity导出的.lh文件报错! [ 75%]

...建为Sprite3D类型Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete));//预加载完成后回调private onCreateComplete():void{//实例化加载并创建好的3D对象var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/room.lh");this.scene.addChild(sprite3D);} 2018-...

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

892. 1.7.8新版本3d骨骼动画如何获取绑点呢 [ 75%]

...x 赋值 var nodeMap = animator._avatarNodeMap; for(var attachPointName in this.m_AttachPointNodeMap){ var node = this.m_AttachPointNodeMap[attachPointName]; var srcNode = nodeMap[attachPointName]; node.transform.localMatrix = srcNode.transform().localMatrix; } zfree • 2017-08-21 17:55 我这边...

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

893. ViewStack属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 75%]

...ed回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.comp.tab.selectHandler = new ...

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

894. 更新到1.7.6beta之后,HBox有bug [ 75%]

....load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case 1: skin = "com...

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

895. SpotLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 74%]

...,同时光照区域边缘也有衰减现象。 ```typescript //聚光灯 this.spotLight = this.scene.addChild(new Laya.SpotLight()); //设置聚光灯颜色 this.spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 this.spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0)...

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

896. 怎么设置了label的text属性,没有生效啊? [ 74%]

...-09-11 0 0 分享 微博 QZONE 微信 youxin 赞同来自:         this.box.dataSource = {slider: 50, scroll: 80, progress: 0.2, input: "This is a input", label: {color: "#ff0000", text: "Hello LayaAir"}};                  this.TestLablel.text = "测试测试"; 官网提供...

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

897. DOM元素-视频 [ 74%]

...位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); } } new DOM_Video();class DOM_Video { constructor() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF"; Laya.stage.a...

来源: Laya2.0_示例 发布时间: 20251209

898. 角色模型的材质列表切换后,不播放动作了 [ 74%]

...eMaterial { static DIFFUSETEXTURE_ID: number = 1; constructor() { super(); this.setShaderName("CustomShader"); } public getDiffuseTexture(): Laya.BaseTexture { return this._getTexture(CustomMaterial.DIFFUSETEXTURE_ID); } public setDiffuseTexture(value: Laya.BaseTexture): void { this._setTexture(Cust...

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

899. 请问node 在destroy的时候 不发出事件是否有什么特殊原因吗 [ 74%]

...y = Laya.Node.prototype.destroy; Laya.Node.prototype.destroy = function(){ this.event('destroy'); oldDestroy.call(this); } } 2017-11-20 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 你直接在销毁的时候派发一个自定义事件,然后把销毁页面之后的逻辑写...

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

900. 2.6物理问题 [ 74%]

...力的数值,球和地面都设置了弹力   TestScript2  onAwake   this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(Phy...

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