大约有 648 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0057 秒)
Laya_社区(363) Laya3.0_api(124) Laya2.0_文档(97) Laya_示例(42) Laya3.0_文档(13) laya_api(5) Laya2.0_api(4)
...eshSprite3D(new Laya.BoxMesh(x, y, z)); instance.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); instance.transform.position = new Laya.Vector3(posX, posY, posZ); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load(textureUrl); instance.meshRender.mat...
来源: Laya_社区 发布时间: 20180402
...nter setExtent setMax setMin Constructors constructor new BoundsImpl(min?: Vector3, max?: Vector3): BoundsImpl Defined in laya/d3/math/BoundsImpl.ts:138 创建一个 BoundsImp 实例。 Parameters Optional min: Vector3 min 最小坐标 Optional max: Vector3 max 最大坐标。 Returns BoundsImpl Pro...
来源: Laya3.0_api 发布时间: 20231115
...dChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vector3(1, 1, 1); directionLight.transform.rotate(new Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们使用...
来源: Laya2.0_文档 发布时间: 20210715
...formDemo{ private scene:Laya.Scene3D; private position:Laya.Vector3 = new Laya.Vector3(0, 0, 0); private position1:Laya.Vector3 = new Laya.Vector3(0, 0, 0); private rotate:Laya.Vector3 = new Laya.Vector3(0, 1, 0); private scale:Laya.Vector3 = new Laya.Vector3()...
来源: Laya_社区 发布时间: 20190509
...a.Camera(0, 0.1, 10000))); camera.transform.translate(new Laya.Vector3(0, 5, 5)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = Laya.Vector3(255,255,0.1); camera.addComponent(CameraMoveScript); //添...
来源: Laya_社区 发布时间: 20180427
...a.Camera(0, 0.1, 10000))); camera.transform.translate(new Laya.Vector3(0, 5, 5)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = Laya.Vector3(255,255,0.1); camera.addComponent(CameraMoveScript); //添...
来源: Laya_社区 发布时间: 20180427
...ew Laya.SpotLight()) as Laya.SpotLight; this.loadCCDlight.color = new Laya.Vector3(1, 1, 1); this.loadCCDlight.transform.position = new Laya.Vector3(-1, 1.2, 0.0); this.loadCCDlight.direction = new Laya.Vector3(0.15, -1.0, 0.0); this.loadCCDlight.attenuation = new Laya.Vector3(0.0, 0.0, 0.8); this.l...
来源: Laya_社区 发布时间: 20180515
...-------------- | ---------------------------------------- | | setAxis(axis:Vector3,secondaryAxis:Vector3) | Axis和Secondary Axis | 设置对象自然旋转的局部轴主轴 | | XMotion | XMotion | 设置x轴线性轴上运动的模式 | | YMotion | YMotion | 设置y轴线性轴上运动的模式 |...
来源: Laya2.0_文档 发布时间: 20210714
...e test { export class Test { private ray: Laya.Ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); private point: Laya.Vector2 = new Laya.Vector2(); private _outHitAllInfo: Array<Laya.RaycastHit>; private camera: Laya.Camera; private label: Laya.Label; constructor() { L...
来源: Laya_社区 发布时间: 20180820
...-------------- | ---------------------------------------- | | setAxis(axis:Vector3,secondaryAxis:Vector3) | Axis和Secondary Axis | 设置对象自然旋转的局部轴主轴 | | XMotion | XMotion | 设置x轴线性轴上运动的模式 | | YMotion | YMotion | 设置y轴线性轴上运动的模式 |...
来源: Laya2.0_文档 发布时间: 20210715