大约有 369 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0085 秒)
Laya_社区(153) Laya2.0_文档(80) Laya3.0_api(43) laya_api(39) Laya2.0_api(33) Laya3.0_文档(19) Laya_示例(2)
...整数的网格索引 */ private getGridIndex(x: number, z: number, out: Vector2) { var minX = this.terrainSprite.minX; var minZ = this.terrainSprite.minZ; var cellX = this.terrainSprite.width / this.aStarMap.width; var cellZ = this.terrainSprite.depth / this.aStarMap.height; var gridX = Math.floor(...
来源: Laya3.0_文档 发布时间: 20230303
...} 2.ts module A{ export function test(){ a = new a(); a.vector2 = new Vector2(100, 100); a.加载() //Laya.loader.create 加载一个模型。 这个a类里面有回调方法 a里面回调方法,回调回来后,发现,a.vector2 值丢了变成0,1了,然后我...
来源: Laya_社区 发布时间: 20180516
...box = boxSys.object3d; parent.addChild(box); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.localPosition = new Laya.Vector3((i-5)*boxSize*1.1,0,j*boxSize*1.1-1); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png...
来源: Laya_社区 发布时间: 20180117
...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)。 (图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们...
来源: Laya2.0_文档 发布时间: 20210715
...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)。 (图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们...
来源: Laya2.0_文档 发布时间: 20210715
...,部分模型会消失,回移镜头又重现了? 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)这样的方法?或求3D抛物线移动的方法或算法。 用EffectAnimation实现Button的点击放大效果点击的时候按钮位移动了是否是我做法有...
来源: Laya_社区 发布时间: 20180125
...hild(camera); //移动摄像机位置 camera.transform.position = new Laya.Vector3(-3, 1.5, 6); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3(-6, 0, 0), true, false); //设置摄像机视野范围(角度) camera.fieldOfView = 33; 附件 : --> 2018-09-10 添加评论 免费...
来源: Laya_社区 发布时间: 20180910
...t):void 增加Alpha渐变。 GradientDataColor addRGB(key:Number, value:Vector3):void 增加RGB渐变。 GradientDataColor clone():* 克隆。 GradientDataColor cloneTo(destObject:*):void 克隆。 GradientDataColorProperty DetailalphaGradientCountpropertyalphaGradientCount:int [read-onl...
来源: laya_api 发布时间: 20170929
...谢谢楼上的回复 我来说说我找到的方法 material.albedo=new Vector4(1.0, 0.0, 0.0, 1.0); 可以直接修改颜色哦!!!! 2017-12-07 0 0 分享 微博 QZONE 微信 wudi199553 赞同来自: 其实用滤镜有很多好处的,当然你那个方法也没问题 2017-12-07 0 0 分享 ...
来源: Laya_社区 发布时间: 20171207
... value: number Returns void lightmapScaleOffset get lightmapScaleOffset(): Vector4 set lightmapScaleOffset(value: Vector4): void Inherited from PixelLineRenderer.lightmapScaleOffset Defined in laya/d3/core/render/BaseRender.ts:269 光照贴图的缩放和偏移。 Returns Vector4 Inherited from Pixe...
来源: Laya3.0_api 发布时间: 20231115