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

大约有 1,200 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0050 秒)

791. 前述问题this.sp3Role.transform.position无效 [ 63%]

...相机跟随没对呢,麻烦看下这样写有问题吗 var newPos:Laya.Vector3 = this.sp3Role.transform.position; if (KeyBoardManager.hasKeyDown(Keyboard.W)) { this.spRole.y -= 1; // newPos.y += 0.1; this.rotateRole(this.rotationW); //转换2D屏幕坐标系统到3D正交投影下的坐标系统 ...

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

792. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 62%]

...组建实例。 Returns Component 组件。 addLine addLine(startPosition: Vector3, endPosition: Vector3, startColor: Color, endColor: Color): void Defined in laya/d3/core/pixelLine/PixelLineSprite3D.ts:69 增加一条线。 Parameters startPosition: Vector3 初始点位置 endPosition: Vector3 结...

来源: Laya3.0_api 发布时间: 20231115

793. MissingMethodException: Method not found: 'UnityEngine.LightmapData.get_lightmapColor'. [ 62%]

...a (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath)   2018-10-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ༺永洹༻ 相关...

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

794. [LayaAir 2.0]laya2.0 CharacterController move 运动不平滑,会抖动 [ 62%]

... new Laya.CapsuleColliderShape(0.5, 1); sphereShape.localOffset = new Laya.Vector3(0, 0.3, 0); this.characterController.colliderShape = sphereShape; this.characterController.gravity = new Laya.Vector3(0, -1, 0); this.characterController.restitution = 0; //弹力     在onUpdate 或者用timer驱...

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

795. 给带有rigitbody3d 组件的物品applyforce后,物体成功运动了,要怎么获得其速度,我取linearVelocity 但是值好像都是不对的.. [ 62%]

...要怎么操作 013 • 2020-03-30 17:01 同问,偏差的非常大 let vectory = new Laya.Vector3(30,0,0); this.rigidbody.linearVelocity = vectory; console.log(this.rigidbody.linearVelocity); 获取得到的值确是 Vector3 {x: -0.20082436501979828, y: 0, z: 0.20082436501979828} z轴分量应该...

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

796. 修改坐标后,实际效果不改变 [ 62%]

...回调中进行位置和大小改变 this.lz.transform.position = new Laya.Vector3(1000, 1000, 1000); this.lz.transform.localScale = new Laya.Vector3(3, 3, 3); 并且确实改变了对应的值。但是渲染的效果并没有变化 附件 : --> LayaScene_Effect.rar effect.rar WebGame.rar 2018-03-27...

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

797. Unity导出报错KeyNotFoundException: The given key was not present in the dictionary. [ 62%]

...a (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolea...

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

798. laya.d3.math.native.ConchVector4_API3.0 [ 62%]

...l Inherited Externals Only exported Menu Globals "laya/d3/math/Native/ConchVector4" ConchVector4 Class ConchVector4 Vector4 类用于创建四维向量。 Hierarchy ConchVector4 Implements IClone Index Constructors constructor Properties elements ONE UnitW UnitX UnitY UnitZ ZERO Accessors w x y z Me...

来源: Laya3.0_api 发布时间: 20231102

799. 请教下, 自己写了个渐变色shader, 但是效果始终不对。麻烦大神们看看代码哪里有问题 [ 62%]

...1);\n" + "};"; this._setColor(Laya.VertexElementUsage.STARTCOLOR0,new Laya.Vector4(1,0,0,1)); this._setColor(Laya.VertexElementUsage.ENDCOLOR0,new Laya.Vector4(0,0,1,1)); var customShader = Laya.Shader3D.nameKey.add("GradientShader"); Laya.ShaderCompile3D.add(customShader, vs, ps, attributeMap, unif...

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

800. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 62%]

........... if (e.keyCode == 97) { // console.log("a"); let newPos = new Laya.Vector3(this.block.transform.position.x + 0.1, this.block.transform.position.y, this.block.transform.position.z); console.log(newPos.x); this.block.transform.position = newPos; } else if (e.keyCode == 100) { // console.log('d...

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