大约有 965 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0050 秒)
Laya_社区(486) Laya3.0_api(135) Laya2.0_文档(121) laya_api(88) Laya2.0_api(75) Laya_示例(42) Laya3.0_文档(18)
...h.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture...
来源: Laya_社区 发布时间: 20190717
...h.createBox(0.5, 0.5, 0.5))) as MeshSprite3D; box.transform.position = new Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Vector3(0, 45, 0), false, false); //球体 var sphere:MeshSprite3D = sprite3D.addChild(new MeshSprite3D(PrimitiveMesh.createSphere(0.25, 20, 20))) as MeshSprite3D; sphere.tran...
来源: Laya2.0_文档 发布时间: 20210715
...erties Show Inherited Public Properties PropertyDefined By localOffset : Vector3 获取Shape的本地偏移。 ColliderShape localRotation : Quaternion 获取Shape的本地旋转。 ColliderShape needsCustomCollisionCallback : Boolean = falseColliderShape type : int[read-only] 获取碰撞类...
来源: Laya2.0_api 发布时间: 20190513
...,1模式。ShurikenParticleSystem startRotationConstantMaxSeparate : Vector3最大开始三维旋转,1模式。ShurikenParticleSystem startRotationConstantMin : Number最小开始旋转,1模式。ShurikenParticleSystem startRotationConstantMinSeparate : Vector3最小开始三维旋转...
来源: laya_api 发布时间: 20170929
...ElementFormat Vector2 : String = vector2[static] VertexElementFormat Vector3 : String = vector3[static] VertexElementFormat Vector4 : String = vector4[static] VertexElementFormatMethod DetailgetElementInfos()method public static function getElementInfos(element:String):Array 获取顶点元...
来源: Laya2.0_api 发布时间: 20190513
...ne_.addChild(cube_2); cube_2.transform.translate(new Laya.Vector3(0,0,-5)); scene_.addChild(spotLight_); scene_.addChild(camera_); scene_.addChild(cube_); Laya.stage.addChild(scene_); cube_.transform.tra...
来源: Laya_社区 发布时间: 20200506
...ya.DirectionLight) as Laya.DirectionLight; light.transform.rotate(new Laya.Vector3(-120, 0, 0), false, false); light.shadow = true; light.shadowDistance = 150; light.shadowResolution = 2048; light.shadowPSSMCount = 1; light.shadowPCFType = 3; let plane: Laya.MeshSprite3D = scene.addChild(new Laya....
来源: Laya_社区 发布时间: 20191030
...ene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, co...
来源: Laya_社区 发布时间: 20200903
...his.scene.addChild(box); // 设置位置 box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); /* 球体 */ let sphere = new Laya.Sprite3D; let sphereMesh = sphere.addComponent(Laya.MeshFilter); let sphereRender = sphere.addCompone...
来源: Laya3.0_文档 发布时间: 20241014
...e3D(); Laya.stage.addChild(this.scene); this.scene.ambientColor = new Laya.Vector3(0.5, 0.5, 0.5); //初始化相机 var camera = new Laya.Camera(0, 0.1, 100); this.scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 3, 5)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), tr...
来源: Laya_社区 发布时间: 20191209