Snapping meshes directly upon adding

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

LordGleedo

FNG / Fresh Meat
Jul 18, 2010
800
74
0
Bucks, England
www.theoldgitsarmy.com
I seem to be having s daft problem that i'm sure has a simple resolution...

Say for example I select the Props_Military>Military_Slit_Trench mesh and I have snap to grid on and at 16.

When I add the mesh to the map, it's never directly to a line on the grid in any view. I some meshes require us to right click them and turn grid snap on in advanced properties, but you still need turn grid snap off and try to get it exactly on the grid in each view before turning snap back on.

I remember in UnrealED 2.5 with BSP you could select a brush and point your mouse close to a vertex and then press a hotkey, the bsp would then snap exactly to that point selected. Is there something like that for meshes?
 

[TW]Swag

FNG / Fresh Meat
May 14, 2009
350
100
0
Yonder, Georgia
The static meshes should automatically snap to the grid providing you have it turned on. In the lower right hand corner of the editor you will find all the gizmo snaps: Drag grid, rotation grid and scale grid.

The hotkey to snap a particular actor to the grid is CONTROL-END with the actor selected. If the actor does not snap, look at the Advanced section of the actor properties and verify that the "Ed Should Snap" bit is selected.

Also, don't drag and drop assets from the content browser to the map in the RO2 SDK as this will make a ROStaticMeshObsticle instead of a static mesh. The ROStaticMeshObsticle does not snap to the grid by default.
 

LordGleedo

FNG / Fresh Meat
Jul 18, 2010
800
74
0
Bucks, England
www.theoldgitsarmy.com
Also, don't drag and drop assets from the content browser to the map in the RO2 SDK as this will make a ROStaticMeshObsticle instead of a static mesh. The ROStaticMeshObsticle does not snap to the grid by default.

Oooooooooooooh Pooh!!

I never drag from the content browser, but I select the mesh and then right-click in a viewport > Add Actor etc

What I did not notice is that the top most actor in that context menu is the ROStaticMeshObsticle. The one below that is the StaticMesh! I have been adding ROStaticMeshObsticles. Every single mesh in my map is an ROStaticMeshObjsticle :(

Does that matter, or should I now got back and change them all to StaticMeshes instead?

:eek::(

EDIT : I just added a "staticmesh" to a viewport and I do have snapping turned on, but Control+End is not snapping them to the grid...not for me anyways
 
Last edited:

[TW]Swag

FNG / Fresh Meat
May 14, 2009
350
100
0
Yonder, Georgia
Yeah, you are going to want to convert them to static meshes. Here's the process:

Select a mesh, press Control-Shift-A to select all. That should select all the obstacle meshes.

Isolate them by clicking the show only selected button on the left tool bar... near the bottom.

Select one unique mesh, then RMB->SelectAllMatching. That should select all the meshes of the matching asset.

Hit Control-B to select it in the content browser. Alternatively, open the properties and find the staticmeshcomponent section and find in browser from there. Then, on the obstacle mesh in the map, RMB->Replace-> SelectStaticMesh.

That should get you sorted out in short order. Take it from a person whose done the exact same thing you've done. :D
 

[TW]Swag

FNG / Fresh Meat
May 14, 2009
350
100
0
Yonder, Georgia
EDIT : I just added a "staticmesh" to a viewport and I do have snapping turned on, but Control+End is not snapping them to the grid...not for me anyways

You probably have to be in the Perspective Viewport. Although sometimes the editor just refuses to do what it's documented to do. :confused:
 

LordGleedo

FNG / Fresh Meat
Jul 18, 2010
800
74
0
Bucks, England
www.theoldgitsarmy.com
Select one unique mesh, then RMB->SelectAllMatching. That should select all the meshes of the matching asset.

Hello Swag, thanks for your help on this. I can do everything before and after the above statement, but I can't see a 'Select All Matching' on the mesh RMB click - see below:

mesh_selectall.jpg


I must have missed something :eek:

I did try 'select all with matching materials' and replaced those, but that had some unexpected results!
 
Last edited:

Srinidhalaya

Active member
Jan 20, 2011
729
208
43
Ran into this. My problem is nothing shows up when "find in content broswer" is used, ctr b doesn't work either. It just brings up the default content broswer. I actually have to go into the
Obstacle Properties>Static Mesh Obstacle>Static Mesh Component>Static Mesh Component>Static Mesh
and select the text, copy, paste, and manually find the mesh I used.
Then follow up with the end of the instructions.

I'm sure you got it fixed already, but since I just encountered this, I brought it up.