Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[Released] Easy Camera Positioning

Discussion in 'Assets and Asset Store' started by lokinwai, Nov 8, 2017.

  1. lokinwai

    lokinwai

    Joined:
    Feb 11, 2015
    Posts:
    174
    ECP (Easy Camera Positioning) helps you navigate and positioning the editor camera with new style method. Plus save and load preset, existing camera, new camera or empty GameObject.

    Asset Store
    FREE Lite Version (Feature Limited)

    Feature:
    • New style of scene view navigation
    • Easily store camera preset and view it
    • Save and load to existing camera or new camera
    • Save to empty GameObject that can use in path reference point
    • Save snap of scene and load it with snapshot
    • Assign hotkey to scap




    Save snap:
    1.png

    New style to navigation:
    ECP lets you move or rotate a GameObject virtually. However, the GameObject does not actually moved. ECP moves the camera relative to the movement of GameObject in opposite directions. This method do more easy to positioning the camera via virtually positioning the target in the viewport.
    ECP also provide a zoom in/out rect tools by drag a rect in the viewport to zoom in/out in the scene.

    Move camera by moving target:
    move.gif
    Rotate camera by rotating target:
    rotate.gif
    Drag scale rect to zoom in:
    zoom in.gif
    Drag scale rect to zoom out:
    zoom out.gif
     
    Last edited: Dec 6, 2017
    Bartolomeus755 likes this.
  2. lokinwai

    lokinwai

    Joined:
    Feb 11, 2015
    Posts:
    174
    I have improved zoom in and out precision. 1.0 use renderer bounds to calculate the reference distance, if the bounds is not axis-aligned, it will expanded. Therefore, sometime can not zoom in to expected distance. New version use camera depth to find the reference distance, the result should be perfect now.
     
  3. lokinwai

    lokinwai

    Joined:
    Feb 11, 2015
    Posts:
    174
    Version 1.2 is submitted to asset store.
    • Add hotkey to toggle the tools on off. Select Settings.asset, you can config the hotkey in inspector. Default is space key.
    • Add hotkey to change tools, hold Alt to use rotate, hold Shift to use zoom. Hold Ctrl/Command to invert zoom in/out.
    • Add a option that require hold Alt/Shift/Ctrl to switch mode with mouse wheel. Use Settings.asset to config.
     
  4. claudius_I

    claudius_I

    Joined:
    May 28, 2017
    Posts:
    251
    Hi
    i have this error when press Ctrl-E
    NullReferenceException: Object reference not set to an instance of an object
    EasyCameraPositioning.SceneViewGUI.‏‮‭‎‫‪‏‫‫‌‪‎‏‏‌‎‪‌‬‮ (UnityEditor.EditorWindow )
    EasyCameraPositioning.SceneViewGUI.ToggleWindow ()
     
  5. lokinwai

    lokinwai

    Joined:
    Feb 11, 2015
    Posts:
    174
    What OS and version are you using?
    Does ECP tools window shows on scene view at startup?
     
  6. claudius_I

    claudius_I

    Joined:
    May 28, 2017
    Posts:
    251
    Windows 7, 2017.1.2
    i don't see the window
     
  7. lokinwai

    lokinwai

    Joined:
    Feb 11, 2015
    Posts:
    174
    Do you import in new project or exist project?
    Is ZoomHelper.shader compiled no problem?
    Try to delete Settings.asset if it helps.
     
    Last edited: Nov 17, 2017
  8. claudius_I

    claudius_I

    Joined:
    May 28, 2017
    Posts:
    251
    i tried the two
    no problem
    don't worked
     
  9. zmaxz

    zmaxz

    Joined:
    Sep 26, 2012
    Posts:
    143
    When i use Easy Camera Position , my game view look like this,
    how do i fix it ?
    EC.jpg
     
  10. lokinwai

    lokinwai

    Joined:
    Feb 11, 2015
    Posts:
    174
    I forget to disable the helper camera, will fix on next update.
     
  11. lokinwai

    lokinwai

    Joined:
    Feb 11, 2015
    Posts:
    174
    Please try attached file, I have PM the password to you.
     

    Attached Files:

  12. claudius_I

    claudius_I

    Joined:
    May 28, 2017
    Posts:
    251
    Hi
    thanks. this work.
    the error was my mistake (sorry)
    When you try to open Easy Camera Position and the view was in Game the error appear. (is a bug)
     
  13. lokinwai

    lokinwai

    Joined:
    Feb 11, 2015
    Posts:
    174
    I see, I can reproduce it by close scene view then toggle the ECP window.
    I will fix it on next update.
     
  14. lokinwai

    lokinwai

    Joined:
    Feb 11, 2015
    Posts:
    174
    Version 1.3 is submitted to asset store.
    • Added a virtual target at screen center if no GameObject is selected. Can be disabled using Settings.asset.
    • Fixed: Error when toggle the ECP window if scene view is closed.
    • Fixed: Game View shows wrong graphics.
    You can also try FREE lite version (feature limited).
     
  15. unity_w6shfeHRAu8uLg

    unity_w6shfeHRAu8uLg

    Joined:
    Nov 28, 2017
    Posts:
    1

    Hi,
    Does this work on Game view as well. I mean if I have to create the camera position bookmarks in Game view can I create and does it have the option of creating multiple camera position bookmarks in different scenes. My client wants to create the bookmark in Game view in different scenes and want to switch between them. Is it possible in this tool.
    Thanks
     
  16. lokinwai

    lokinwai

    Joined:
    Feb 11, 2015
    Posts:
    174
    This is editor extensions, it only works in editor.
     
  17. lokinwai

    lokinwai

    Joined:
    Feb 11, 2015
    Posts:
    174
    Updated 1.4
    • Add Snap function, right click or Ctrl/Command + click camera button to open snap window.
    • Add Settings Inspector, provide a GUI to change the settings.
    • Snap can be selected via hotkey, go to Settings to assign hotkey.
    1.png 2.png