Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Prefab Pick & Place

Discussion in 'Assets and Asset Store' started by StylishCoding, May 10, 2018.

  1. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    106
    Prefab Pick & Place lets you select prefab from scene view instead of drag and drop from project view.

    Asset Store

    large.png

    Press hotkey to open the picker in scene view with a list of prefab from selected paths. You are not needed to use a large project view window anymore.

    After selected a prefab from picker, you can move the mouse to change the position of the placement without holding the mouse button. In addition, you can scroll the mouse wheel to switch next or previous prefab before confirm the placement.

    A hotkey based placement system like Blender 3D, there are 4 sub-mode in placement mode. (Surface, Move, Rotate and Scale.)

    Surface Mode
    • Adjust offset (Ctrl), rotate (Alt) and scale (Shift) during snapping on surface.
    • Align the object to world vector. World vector can be configured or use surface normal. Also allowed to choose the object vector to align to.
    • Randomize rotate and scale in configured range.
    2018-06-21 12-23-52.gif
    2018-06-21 12-21-35.gif

    Move, Rotate and Scale
    • Make the adjustment constraints on axis (x,y,z,yz,xz,yz). In world space or object space.
    • Snap to the configured units, absolute or relative.
    2018-06-21 12-36-35.gif
    2018-06-21 12-34-34.gif

     
    Last edited: Jun 22, 2018
  2. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    106
  3. wolfen231

    wolfen231

    Joined:
    Apr 22, 2014
    Posts:
    402
    Hi. Add path to picker is grayed out for me on any path. No errors in the console either. Unity 2017.2.2
     
  4. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    106
    Do you right click on folder treeview? You need to use the folder in asset listview.
    It is the issue of Unity's design, because the right click menu rely on selected asset.
    However, click on folder treeview doesn't select the folder.
     
  5. wolfen231

    wolfen231

    Joined:
    Apr 22, 2014
    Posts:
    402
    That be the problem! Right click on folder in the asset view does show it. Thanks!
     
  6. wolfen231

    wolfen231

    Joined:
    Apr 22, 2014
    Posts:
    402
    One more issue I noticed. Seems like the gizmo is gone for moving objects around. Is this intended behavior? I couldn't get it back at all until I removed the asset.
     
  7. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    106
    Thank you for reporting it. The gizmo should return after the picker closed. I will fix it.
     
  8. wolfen231

    wolfen231

    Joined:
    Apr 22, 2014
    Posts:
    402
    FYI This was in 2017.2.2
     
  9. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    106
    Thanks, I have fixed the bug and submitted to store.
     
  10. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    106
    update:
    • Show particle when placing prefab.
    • Fix transform manipulator not unhide after picker close.
     
  11. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    106
    Reminder: The discount ends tomorrow.
     
  12. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    106
    I am adding new features in placement mode. A hotkey based placement system like blender. You can use hotkey to snap, move, rotate, scale the prefab before confirm the placement.

    PS. It is work in progress.

    2018-06-06 09-40-55.gif
     
    Last edited: Jun 11, 2018
    wolfen231 likes this.
  13. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    106
    Adding support to rotate and scale in surface mode. Also add hotkey to randomize the rotation and scale.

    PS. It is work in progress.

    2018-06-10 19-29-05.gif
     
    Last edited: Jun 11, 2018
    wolfen231 likes this.
  14. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    106
    Please note that the features in previous two post is work in progress.
     
  15. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    106
    Improving the snap surface placement, this is a prop not designed snap surface friendly:
    1.jpg

    Align to Y+, it cannot snap on ground and wall in different rotate.
    2018-06-16 17-07-35.gif

    Align to surface normal, the rotation is incorrect:
    2018-06-16 17-07-50.gif

    Align object right to surface normal, everything is fine now:
    2018-06-16 17-08-00.gif
     
    Last edited: Jun 21, 2018
  16. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    106
    The new placement system is updated on Asset Store:
    • Add a hotkey based placement system like Blender 3D, and 4 sub-mode in placement mode. (Surface, Move, Rotate and Scale.)
    • Surface Mode: Adjust offset (Ctrl), rotate (Alt) and scale (Shift) during snapping on surface.
    • Surface Mode: Align the object to world vector. World vector can be configured or use surface normal. Also allowed to choose the object vector to align to.
    • Surface Mode: Randomize rotate and scale in configured range.
    • Move, Rotate and Scale: Make the adjustment constraint on axis (x,y,z,yz,xz,yz). In world space or object space.
    • Move, Rotate and Scale: Snap to the configured units, absolute or relative.
     
  17. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    106
    The new feature in Surface Mode:

    Adjust offset (Ctrl), rotate (Alt) and scale (Shift) during snapping on surface.
    Randomize rotate and scale.

    2018-06-21 12-23-52.gif

    Different alignment settings:

    2018-06-21 12-21-35.gif
     
    Last edited: Jun 22, 2018
  18. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    106
    Move, Rotate and Scale:

    Make the adjustment constraint on axis (x,y,z,yz,xz,yz). In world space or object space.

    2018-06-21 12-36-35.gif

    Snap to configured units, absolute or relative.

    2018-06-21 12-34-34.gif

    Rotate:

    2018-06-21 12-39-42a.gif

    Scale:

    2018-06-21 12-39-42b.gif
     
    Lars-Steenhoff likes this.
  19. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    1,641
    Can you add favourites to this? so I can make a custom list of prefabs. or is this already in there?
     
  20. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    106
    Thank you for the suggestion. I will add favourites in future version.