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

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

151. Sprite3D 不旋转 [ 73%]

...                                    layaMonkey.transform.rotate(vect,true,false)                 }) 让他自转,但自己从unity里面导出的sprite3d却不转,这是怎么回事呀?求高人解答帮助一下 2018-03-02 添加评论 免费帖 --> 分享 微博 QZO...

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

152. TweenLine圆周运动朝向(顺逆时针)的问题 [ 73%]

...问题 timeLine_music = new TimeLine(); timeLine_music.to(music_circle, {rotation:360}, 2000) .to(music_circle, {rotation:0}, 2000); timeLine_music.play(0, true); 我要做的是一个始终圆周运动的循环动画,为何一次顺时针、一次逆时针?有没有能控制其始终顺时针...

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

153. Sprite-容器 [ 73%]

...); Laya.timer.frameLoop(1, this, this.animate); } animate() { this.apesCon.rotation += 1; } } new Sprite_Container();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Containe...

来源: Laya2.0_示例 发布时间: 20250219

154. Sprite-容器 [ 73%]

...); Laya.timer.frameLoop(1, this, animate); } function animate(e) { apesCtn.rotation += 1; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Container { // 该容器用...

来源: Laya_示例 发布时间: 20250219

155. unity3d导出的模型 ,子模型不能通过代码旋转,移动是可以的 [ 73%]

...获得子物体,可以通过translate移动,但是旋转就不行了,rotate,rotation都试过了都没效果。 2019-03-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 bpmf_d 赞同来自: 这个是可...

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

156. 射线检测-放置物体 [ 73%]

...); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.di...

来源: Laya_示例 发布时间: 20250219

157. 摄像机如何旋转后 回到旋转之前的视角 [ 73%]

...何旋转后 回到旋转之前的视角 摄像机旋转camera.transform.rotate(new Laya.Vector3(0.15, -5.95, 0.015)); 之后通过camera.transform.rotate(new Laya.Vector3(-0.15, 5.95, -0.015)); 不能回到原来的视角 2018-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

158. frameLoop定时器里面写的代码不生效? [ 73%]

frameLoop定时器里面写的代码不生效? tItem.wheelLeft.rotation = 300; //这一行界面上能显示出旋转 Laya.timer.frameLoop(1, this, rotateWheel); function rotateWheel() { //这个方法里的在界面上不显示旋转     tItem.wheelLeft.rotation +=1; } 2017-09-21 添加评论 ...

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

159. Unity 3D 模型的中心点 [ 73%]

...0. 缩放的时候也以(0,0,0)定位。   旋转代码:  var _rotateLeft = new Laya.Vector3(0, 1, 0); floor.transform.rotate(_rotateLeft, true, false); 或者 floor.transform.rotate(_rotateLeft, false, false); 2018-08-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

160. 组件属性的代码使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...t { @property({ type : Laya.Sprite3D}) public cube: Laya.Sprite3D; private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图1-4所示: (动图1-4) 1.3 3D节点的...

来源: Laya3.0_文档 发布时间: 20250103