Search Unity

Prefab Pick & Place

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

  1. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    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:
    140
  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:
    140
    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:
    140
    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:
    140
    Thanks, I have fixed the bug and submitted to store.
     
  10. StylishCoding

    StylishCoding

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

    StylishCoding

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

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    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:
    140
    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:
    140
    Please note that the features in previous two post is work in progress.
     
  15. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    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:
    140
    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:
    140
    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:
    140
    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:
    3,527
    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:
    140
    Thank you for the suggestion. I will add favourites in future version.
     
  21. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Updated to 1.1.1:
    • Add several new hotkey (Reset movement, Reselect, Confirm, Cancel, Rotate Left/Right in Move Mode)
     
  22. Slick_Nick

    Slick_Nick

    Joined:
    Jan 4, 2014
    Posts:
    37
    Hello, as of 2018.2 projects no longer accepts "&" in file/folder names, makes the visual studio project files corrupt.

    Would be really nice if you could include source file instead of a dll... when i change the name "PrefabPick&Place" to "PrefabPickAndPlace" the file the VS-Project files are working correctly but i cannot use the placement tool...

    Thanks in advance
    /Niklas
     
  23. Slick_Nick

    Slick_Nick

    Joined:
    Jan 4, 2014
    Posts:
    37
    Bump....
     
  24. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    What problem you have? I am using 2018.2 without any problem.
     
  25. Slick_Nick

    Slick_Nick

    Joined:
    Jan 4, 2014
    Posts:
    37
  26. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    I think you can remove PrefabPick&Place from reference in the project.
     
  27. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,527
    Is there a special reason it packaged as a .dll ?
    why not include source?

    I love this tool
    Thanks

    ( scared that unity will break things )
     
  28. Muppetsaurus

    Muppetsaurus

    Joined:
    Oct 11, 2017
    Posts:
    2
    I have a problem. We have a scaling problem in our game, lots of assets are not the right size so the prefabs are adjusted afterwards. We have lots of Prefabs with scale 0.4, When using your assets those become really big, understandable if you have correct prefab scale but are there anyway to get the prefab scale used as default in the asset. So assets that are 1, 1, 1 will be 1,1,1 in the picker but assets that are 0.4 will be 0.4 in the picker.

    Great asset!
     
  29. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Sorry for late reply, I updated new version will keep prefab rotation and scale after selected in picker.
     
    Lars-Steenhoff likes this.
  30. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    I changed next version to use source code, because Unity detect DLL and source as different package, so the settings in DLL version will lose after updated to next version.
     
    Lars-Steenhoff likes this.
  31. lundon

    lundon

    Joined:
    Nov 6, 2009
    Posts:
    59
    Would it be possible, in a future version, to be able to load and save different databases? For example, I have lots of modern furniture in various folders. It would be nice to have a second database that only contains prefabs related to various medieval stuff.

    Also on my wish list, the ability to search the list. I might have chairs in six different folders. Nice to see all of them together.
     
  32. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Thanks for your suggestion, I will consider it.
     
    Lars-Steenhoff likes this.
  33. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Added catalog, favorite and filter on next version.

    upload_2019-2-2_2-0-24.png

    upload_2019-2-2_2-1-52.png

    upload_2019-2-2_2-2-32.png

    upload_2019-2-2_2-3-39.png
     
    Lars-Steenhoff and lundon like this.
  34. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,527
    super cool! thanks
     
  35. eagleeyez

    eagleeyez

    Joined:
    Mar 21, 2013
    Posts:
    406
    some prefabs show and some do not, even after reinport. They are from the same asset and I see no difference to why some appear and some not. This is useless for me if I cannot see the assets.
    How to solve this problem please?
    This is a great asset if only I could see all prefabs.
     
  36. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Hello, can you give me more detail information? What the prefab is and how it not show? What Unity version you are using. Thanks!
     
  37. eagleeyez

    eagleeyez

    Joined:
    Mar 21, 2013
    Posts:
    406
    Hi there.

    It is Unity 2018.2.14f1

    I tried something else. In a clean project I imported Ultimate Fantasy Creator and then PrefabPick&Place. Clicking the on All in the scene did show all prefab icons, none missing.

    However making a Favorite or Category nothing shows up.

    I right click the prefab folder copy path and then paste into favorite or category and in the scene you can see that the path was added but no icons appear.

    It would be great if you can get this working as If it does this will be the best one on the asset store.

    And a little hint this works seamlessly with mesh makers snap to grid. Both of these tools together make it for me more powerful than octave 3d Level design which I also purchased but do not like it.

    Your asset is better for me.

    Thank You.
     
  38. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    You need to add path after created catalog. See the gif below:

    2019-03-08 17-23-38.gif
     
  39. eagleeyez

    eagleeyez

    Joined:
    Mar 21, 2013
    Posts:
    406
    Thanks, now it is working.

    The only thing missing in this fantastic asset would be the ability like in Octave 3D Level design to extrude. This means that pulling in one direction holding a key would duplicate the prefab in the direction you pull and next to each other.

    Could you do something like that?

    That would be super

    Thanks.
     
  40. SnowDrakE

    SnowDrakE

    Joined:
    Jul 3, 2013
    Posts:
    1
    Would it be possible to get an offset to the grid snapping?
    In my particular case, I center tiles around 0.5 units but they are 1 unit wide. So my snap settings are set to 0.5, but it would be much more comfortable if I could leave it at 1 and just begin at 0.5.

    Also, is there a function where you can place objects continuously, like when placing walls for long corridors? Click click click click instead of picking the prefab everytime.
     
  41. DavidJares

    DavidJares

    Joined:
    Dec 18, 2016
    Posts:
    50
    Hi . Sorry . Can anyone please explain to me how the Favourites-Feature Works ? The manual is not exhaustive enough. Also I canno treally see what the little Folder-Symbol next to the Pickers-Buttons does. - Bonus: As a Feature-Wish, it would be nice in Placementmode that the Objects'-Axis-Gizmo wouldnt disappear, so that you'D always know where X/Y/Z is relative to the object. Otherwise, really cool plugin. Thank you very much in advance. David https://ibb.co/4TWGT2p
     
  42. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    You can right click the asset in prefab picker to add asset to favourites. The folder button is include all asset in subfolder.
     
  43. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,527
    Can you make an option to set the sorting layer where the object are placed on?

    And a have a little bug some thumbnails are not loaded
    And I cannot grab the scrollbar on the right side, perhaps I have too many assets?
     
  44. noobynobody

    noobynobody

    Joined:
    May 9, 2019
    Posts:
    75
    Are more features going to be added? I also think being able to place objects continuously would speed up workflow a lot, and it would make grip snapping actually make sense to me.

    Is it not possible to randomize only rotation and not scale? Also, I can't drag the scrollbar either.

    The [>]: Select only this path button is really small, and I find I press this very often. Could you make this larger?
     
    Last edited: Sep 16, 2019
  45. noobynobody

    noobynobody

    Joined:
    May 9, 2019
    Posts:
    75
    See screenshot. ProGrids prevents me from clicking on the [>] for `Map Prefabs`. Or any other button that overlaps.
     

    Attached Files:

    Last edited: Oct 7, 2019
  46. noobynobody

    noobynobody

    Joined:
    May 9, 2019
    Posts:
    75
    Surface mode does not work. Anyone have any idea what could be the issue? Basically it functions as if I wasn't using Prefab Pick & Place, so it only snaps to surfaces that have a collider...unless I'm misunderstanding the functionality of this asset. I thought it could snap to surfaces without colliders?
     
    Last edited: Oct 7, 2019
  47. Gua

    Gua

    Joined:
    Oct 29, 2012
    Posts:
    455
    Search functionality is unusable for my project, cause it works super slow. Does anyone knows how to fix it?