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

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

1041. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 47%]

...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //加载精灵 var monkey = Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"); //精灵添加脚本 monkey.addComponent(MonkeyScript); scene.addChild(monkey); } }...

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

1042. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 47%]

...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载...

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

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

...treeItem", "width": "150", "left": "33", "height": "22", "name": "label", "color": "#ffff00", "right": "0", "x": "33"}}, {"type": "Clip", "props": {"x": "0", "name": "arrow", "y": "5", "skin": "ui/clip_tree_arrow.png", "clipY": "2"}}], "type": "Box", "props": {"name": "render", "right": "0", "left":...

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

1044. laya.d3.core.material.WaterPrimaryMaterial [ 47%]

...Value : Number 获取透明测试模式裁剪值。 BaseMaterial  horizonColor : Vector4 获取地平线颜色。 WaterPrimaryMaterial  mainTexture : BaseTexture 获取主贴图。 WaterPrimaryMaterial  normalTexture : BaseTexture 获取法线贴图。 WaterPrimaryMaterial renderQueue : int ...

来源: Laya2.0_api 发布时间: 20190513

1045. 图集打包与动画 [ 47%]

...); Normal是默认动画,就没有问题。 代码如下: let url=this.color+'Emoji.ani'; this.ani=new Laya.Animation(); this.ani.loadAnimation(url); this.addChild(this.ani); this.ani.play(0,true,'XiuXian'); 3、顺便确认一下:Laya中的事件系统,鼠标事件是冒泡的,其他事...

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

1046. ☆☆☆☆☆☆☆☆☆☆☆每增加一个 view 都会增加一个 drawcall 吗 ☆☆☆☆☆☆☆☆☆☆☆ [ 47%]

...wcall kezhiyu • 2018-05-23 10:16 __proto.fillText=function(text,x,y,font,color,textAlign){ Stat.drawCall++; if (arguments.length > 3 && font !=null){

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

1047. 微信授权,获取用户信息的接口实现方法,wx.createUserInfoButton [ 47%]

...         lineHeight: 40,                         backgroundColor: '#ff0000',                         color: '#ffffff',                         textAlign: 'center',                         fontSize: 16,                         borderRadi...

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

1048. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 47%]

...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //加载精灵 var monkey = Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"); //精灵添加脚本 monkey.addComponent(MonkeyScript); scene.addChild(monkey); } }...

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

1049. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 47%]

...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载...

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

1050. laya3d导入模型动画,添加光照之后,模型全黑。 [ 47%]

...t = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vector3(1, 1, 1); directionLight.direction = new Vector3(0, -1.0, -1.0); 如果还是达不到你想要的效果的话就尝试更改一下你的材质 材质与灯光的详细介绍连接 https://ldc.layabox.com/...

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