大约有 726 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0053 秒)
Laya_社区(330) Laya3.0_api(99) Laya2.0_api(82) laya_api(76) Laya2.0_文档(63) Laya_示例(46) Laya3.0_文档(18) Laya2.0_示例(12)
...r.height判断出此时是横屏还是竖屏,然后动态的修改list的rotation即可! asdf131 • 2017-04-07 21:41 回复不可以加图片啊,我编辑了上面的内容,加了一张图片,就是在一个panel中,横竖屏时自动调整每一行的数量。
来源: Laya_社区 发布时间: 20170407
...shapeOffset, scale, physicPosition); Vector3.transformQuat(physicPosition, rotation, physicPosition); 就可以了
来源: Laya_社区 发布时间: 20191128
...置scale后跟随动作显示不对 在模型不设置scale,而是设置rotation旋转时,粒子跟随动作是没问题的。demo已经上传,小键盘4/6可以设置模型的scalez,小键盘5可以切换模型的动作。 附件 : --> u3drestest.zip 2019-12-18 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20191218
...hItem.angle pathItem.angle = angle; //物体旋转 pathItem.item.transform.rotate(new Laya.Vector3(0,0,dis), false, true); //物体平移 pathItem.item.transform.position = new Laya.Vector3(newPos.x, newPos.y, pathItem.item.transform.position.z); 2019-05-24 添加评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20190524
...ne.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position =new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = plane.transform.position; */ export defau...
来源: Laya_社区 发布时间: 20170714
...1); fish.transform.localPosition = new Laya.Vector3(0,1,0); fish.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); //移动鱼 Laya.Tween.to(fish,{x:-1},3000,Laya.Ease.linearIn,null) 这个Laya.Tween.to(fish,{x:-1},3000,Laya.Ease.linearIn,null)是不是写错了。。。应该怎么写啊。假设...
来源: Laya_社区 发布时间: 20170918
...载到场景scene.addChild(camera);//旋转摄像机角度camera.transform.rotate(new Laya.Vector3(-25,0,0),false,false);//移动摄像机位置camera.transform.position = new Laya.Vector3(0,5,10);//加入摄像机移动控制脚本camera.addComponent(CameraMoveScript); //添加蒙皮动画角色...
来源: Laya_社区 发布时间: 20180531
...ne.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position =new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = plane.transform.position; */ export defau...
来源: Laya_社区 发布时间: 20190224
...e function onClickSprite():void { trace("点击 sprite 对象。"); sprite.rotation += 5;//旋转 sprite 对象。 } private function onClickShape():void { trace("点击 shape 对象。"); shape.rotation += 5;//旋转 shape 对象。 } } } example var sprite; var shape; Sprite_Example(); function Sp...
来源: Laya3.0_api 发布时间: 20231115
...e=new Sprite(); sp.graphics.save(); var matrix:Matrix=new Matrix(); matrix.rotate(45); matrix.translate(100,100); sp.graphics.transform(matrix); sp.graphics.drawRect(0,0,200,100,"#FF0000"); sp.graphics.restore(); Laya.stage.addChild(sp);我测试没有问题,可以把你详细的代码发下,我...
来源: Laya_社区 发布时间: 20170609