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

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

1811. 用1.01导出的场景加载失败 [ 54%]

... the .lh file root type must be Sprite3D,please use other function to load this file.     我的代码  var scene = Laya.Sprite3D.load("unity/LayaScene_1/1.lh");     SceneManager.Instance().AddChild(scene);   2017-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

1812. 用u3d导出的粒子效果,不能移动粒子的位置 [ 54%]

...a.Sprite3D; particleSprite3D.transform.translate(new Laya.Vector3(0,20,0)) this.scene.addChild(particleSprite3D); 用u3d导出的粒子效果,不能移动粒子的位置 2018-05-16 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

1813. 如何为灯光添加阴影(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 54%]

...Shadow = true; ....... // A sphere cast/receive shadow. var sphereSprite = this.addPBRSphere(Laya.PrimitiveMesh.createSphere(0.1), new Laya.Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; sphereSprite.meshRenderer.receiveShadow = true; ``` 然后来看下效果。 ![](img/...

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

1814. 自定义panel类问题 [ 54%]

...roll); m_talkScroll = new UIScroll(610.0, 250); m_talkScroll.pos(60, 500); this.addChild(m_talkScroll);     2017-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: 应该是...

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

1815. laya.ui.Button_API3.0 [ 54%]

...背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var button:Button = new Button("resource/ui/button.png","label");//创建一个 Button 类的实例对象 butto...

来源: Laya3.0_api 发布时间: 20231115

1816. 如何为灯光添加阴影(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 54%]

... ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.createSphere(0.1), new Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; ``` 然后来看下效果。 ![](img/1.png)(图1)

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

1817. 新手学js做开发,写了一个按钮,点击没有反应 [ 54%]

...ction(_super){     function LoginView(){         LoginView.super(this);     }     Laya.class(LoginView,"LoginView",_super);     return LoginView; })(ui.LoginUI);   2018-01-30 0 0 分享 微博 QZONE 微信 sky_summer 赞同来自: 我是根据视频上学的(如下截图),...

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

1818. 自定义loadingView [ 54%]

...url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } 这里的dd=__JS__("window.loadingView"); 换成 ts 怎么写 Apple • 2018-04-16 16:22 直接 Laya.Browser.window.loadingView

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

1819. 1.7版本要初始化后有些代码才能用了 [ 54%]

...t; "use strict"; var test = {}; test.text = new laya.display.Text(); // in this line is error , so you can't defined class before "Laya.init" Laya.init(800,600); //test.text = new laya.display.Text(); // in this line is right test.text.text = "dsafdsdsada"; test.text.color = "#ff0000"; Laya.stage.ad...

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

1820. 摄像机捕捉目标(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 54%]

...1, 0); ``` ```typescript //点击事件 changeActionButton.on(Event.CLICK, this, function():void{ index++; if (index % 3 === 1 ){ //摄像机捕捉模型目标 camera.transform.lookAt(box.transform.position, _up); } else if (index % 3 === 2){ //摄像机捕捉模型目标 camera.transform.lookAt(cyl...

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