大约有 965 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0044 秒)
Laya_社区(486) Laya3.0_api(135) Laya2.0_文档(121) laya_api(88) Laya2.0_api(75) Laya_示例(42) Laya3.0_文档(18)
...mera(0, 0.3, 1000)) as Camera; renderTargetCamera.transform.position = new Vector3(-28.8, 8, -60); renderTargetCamera.transform.rotate(new Vector3(0, 180, 0), true, false); //选择渲染目标为纹理 renderTargetCamera.renderTarget = new RenderTexture(512, 512); //渲染顺序 renderTargetCamera....
来源: Laya2.0_文档 发布时间: 20210715
...nt:Vector2 = new Vector2(); //创建一个射线 var ray: Ray= new Ray(new Vector3(0, 0, 0), new Vector3(0, 0, 0)); //以鼠标点击的点作为原点 point.x = Laya.stage.mouseX; point.y = Laya.stage.mouseY; //计算一个从屏幕空间生成的射线 camera.viewportPointToRay(point, ray); ``` ...
来源: Laya2.0_文档 发布时间: 20210714
...PropertyValue getTexture getTextureByIndex getVector2 getVector2ByIndex getVector3 getVector3ByIndex getVector4 getVector4ByIndex hasDefine hasListener isCreateFromURL off offAll offAllCaller oldparseEndEvent on once removeDefine setBool setBoolByIndex setBuffer setBufferByIndex setColor setColorByI...
来源: Laya3.0_api 发布时间: 20231115
...oad("man/hero-mon_1129.lm")); this.roleMan.transform.localScale = new Laya.Vector3(0.01,0.01,0.01); this.roleMan.transform.localPosition = new Laya.Vector3(0,-0.5,-3); this.scene.addChild(this.roleMan); //给男角色添加贴图动画 var manAni:Laya.SkinAnimations = this.roleMan.addComponent(Laya....
来源: Laya_社区 发布时间: 20180725
...背景与天空盒设置 //设置背景颜色 camera.clearColor = new Laya.Vector3(0.5,0.5,0.6); 天空盒 //创建天空盒 var skyBox:Laya.SkyBox = new Laya.SkyBox(); //清除标记,使用天空(必须设置,否则无法显示天空) camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //绑...
来源: Laya_社区 发布时间: 20170809
...一套 2018-02-09 0 0 分享 微博 QZONE 微信 watsonsong 赞同来自: Vector3里面有的求长度scaleLength或者点乘dot这种最基本的,Vector2里面都没有。 而不是一些不常用的公式。 既然Vector3里面都有提供,Vector2对应的不是也应该有么 2018-02-09 0 1 ...
来源: Laya_社区 发布时间: 20180209
...ateBox(1, 1, 1))) as Laya.MeshSprite3D; box_1.transform.translate(new Laya.Vector3(0, 5, 0)); var boxRigidBody_1 : Laya.Rigidbody3D = box_1.addComponent(Laya.Rigidbody3D); var boxShape_1 : Laya.BoxColliderShape = new Laya.BoxColliderShape(1, 1, 1); boxRigidBody_1.colliderShape = boxShape_1; boxRigid...
来源: Laya_社区 发布时间: 20190602
...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.0)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; camera.addComponent(CameraMoveScript); var map=Laya.Sprite3D.load("H5/Main.lh"); scene.addChild(map); 2017...
来源: Laya_社区 发布时间: 20170515
....DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 0)); directionLight.shadowMode = Laya.ShadowMode.SoftLow; directionLight.shadowDistance = 100; directionLight.shadowNearPlane = 1...
来源: Laya_社区 发布时间: 20201105
...点击按钮切换注视目标。 ```typescript //up向量 private var _up:Vector3 = new Vector3(0, 1, 0); ``` ```typescript //点击事件 changeActionButton.on(Event.CLICK, this, function():void{ index++; if (index % 3 === 1 ){ //摄像机捕捉模型目标 camera.transform.lookAt(box.transform.po...
来源: Laya2.0_文档 发布时间: 20210714