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

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

671. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 61%]

...load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(...

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

672. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 61%]

...load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(...

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

673. BlinnPhong材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 61%]

...反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个...

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

674. 物理刚体(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 61%]

...`typescript //加载模型 Laya.Sprite3D.load("Conventional/shoot.lh",Laya.Handler.create(this,function(sp){ //获取到Meshsprite3d var cube = scene.addChild(sp.getChildAt(0); //获取刚体 var cubeRigid = cube.getComponent(Laya.Rigidbody3D); })); ```

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

675. laya获取图片像素后重新设置回去带有透明像素的地方显示有问题 [ 61%]

...type:Laya.Loader.IMAGE});          Laya.loader.load(alive, Laya.Handler.create(this, this.LoadFinish));      }      private LoadFinish(success:boolean):void     {         if(success)         {             let tex:any = Laya.Loader.getRes("res/...

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

676. 多线程worker(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 61%]

...口如下: ```java package { import laya.net.Loader; import laya.utils.Handler; import view.TestView; import laya.net.WorkerLoader; import laya.webgl.WebGL; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400,WebGL); //设置Laya提供的worker.js的...

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

677. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 61%]

...a.Loader.ATLAS }); //加载图集资源 Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 嗯 加载改好了 我们先来测试一下 图片是否能拿到 我们在onLoaded方法里面 写一点测试代码 如下   functi...

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

678. BlinnPhong材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 61%]

...反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个...

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

679. TiledMap 45度地图块渲染顺序问题 [ 61%]

...dMap.createMap("res/tiled/green.json", new Rectangle(0, 0, 1120, 860), new Handler(this, this.completeHandler),null,new Point(1120,860)); 最后那个参数new Point(1120,860),其实是地图的分块渲染的大小,默认是450,450,所以把我的地图分成3次渲染了。 注释很奇怪 ...

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

680. 调用时间轴动画丢失皮肤问题? [ 61%]

... 2018-03-29 15:48 Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("XXXXX1.ani"); //添加到舞台 Laya.stage.addChild(tl); //播...

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