Vacation time: I will be on vacation from November 26th to December 7th, please expect a delay in my support. Thank you for your understanding.

This makes no difference.

The code in CameraTopDownOrtho.cs does not compile, "CameraTopDownOrthoEditor.cs(11,33): error CS0115: 'CameraTopDownOrthoEditor.Init()': no suitable method found to override" But I dont use Ortho yet.

The code in CameraPerspective.cs compiles, but when it's run, initialRotation is (0,0) so it's not taken from the camera.

Mind you, in line 15 it says "public Vector2 initialRotation= new Vector2(0,0);"

Kulitorum

    Well, Disabling the "Camera Top Down Ortho" script form TouchCamera fixes it, and then it works.

      Hmmm, but then I get an error in cameraorthobase.....

        Ah, scratch the earlier comment about "CameraTopDownOrtho" - I pasted it in CameraTopDownOrthoEditor.cs

        Still don't work though.

          kulitorum Hi! You may have done something wrong editing the files, so try to reimport the plugin and re add these lines ? It's really just this line that needs to be added: " finalOffset = transform.position.SetY(0);"

          Otherwise I can send you the updated scripts.

            Ok, I reimported everything, including Lean.

            I replaced the init functions.

            I then select the "TouchCamera" (only camera in my scene) and move it to:
            -3.26, 10.35, -6.03
            35, 38.19, 0
            1,1,1

            And play.

            Result:
            -3.259782, 7.633153, -16.9334
            35,0,0
            1,1,1

            So I load your demo, "Camera Modes/Perspective_Only_Demo"

            Select the "TouchCamera" and move it to:
            10,10,10
            30,30,0
            1,1,1

            And play. Same result, camera is at:
            10,5.73, 1.0
            35,0,0
            1,1,1

            Can you please fix it?

              kulitorum
              I understand your point, basically right now, the transform position is used as offset in the plugin, and the "init rotation" variable is taken from the camera component parameters, instead of the transform rotation.

              What you request is to keep the exact same transform (position+rotation) and convert it to the plugin's settings at start.
              I will work on that and keep you posted!

              Thanks!

                So is there any way I can hack it in the meantime? - I just want my initial view to look good, that's all.
                Can I setup the start viewport somewhere else?

                Thank you.

                  kulitorum I understand, then on the camera's component, locate the "initial rotation" parameters and edit them, for example if you're using CameraPerspective mode :

                  You can also change the init distance :

                  this is the distance between the camera view's center point on the ground and the camera along the it's z axis.

                  then you will have to change the camera's Transform position, it will be applied as the "offset" setting. The offset is the camera view's center point position on the ground.

                  I agree it's a bit tricky, so you're point makes complete sense, I'll work on that asap.
                  Thanks!

                    With this information I got to a usable result.

                    Thank you.

                      If you are updating the script, can you add a function to move the Y coordinate of the camera? - Like a mode where you move the camera target in a plane perpendicular to the camera view vector (camera->target) ?

                      Thank you

                        kulitorum good to hear. I've managed to do it properly yesterday with the CameraPerspective mode, now I have to work on the other modes.

                          kulitorum you can allow y axis change when focusing on an object, otherwise the Y target of the camera is always y=0. (the ground).

                            The preview version you emailed me works a lot better.

                            Thank you.

                              Write a Reply...