autocore-ai / MapToolbox

Plugins to make Autoware vector maps in Unity
GNU Lesser General Public License v3.0
257 stars 101 forks source link

How to move and align the 'Signal' asset in v0.1.0 #53

Open abhi5691 opened 3 years ago

abhi5691 commented 3 years ago

Hi,

Thanks for this awesome tool. I am using the MapToolbox v0.1.0 with Unity 2019.4.14 on my Windows machine. I am able to insert an AutowareADASMap asset into my project hierarchy, and successfully add lanes, stoplines etc. Each of these assets adds ADASGoSlicesXX object for each lane/stopline instance. But when I add a new Signal asset, there is a 'NewGameObject' added as a child to ADASMapSignal, and an ADASMapPole. I see a TL cone added at map origin, but I cannot move (neither rotate) this object by dragging. This makes it near impossible to precisely assign this asset to actual TLs in .pcd map.

image

Can you please help me with this or point me to a tutorial where you demonstrate adding a Traffic Light.

Thanks

alperenbayraktar commented 3 years ago

You can also hover over the "Position X-Y-Z" label on the Transform component and drag them to left or right to adjust. But direction gizmos not showing is another problem. Can you see the direction gizmos with other kind of objects? Please try with Autoware objects and then just with default unity 3d-2d objects if possible.

alperenbayraktar commented 3 years ago

it's a bit late but for those who have this problem, it's because setting Tools.current = Tool.None; this mean setting this part of unity editor to no tool: image So, simply click on the move(2nd) tool to reveal handles. Or create an editor class for those types and add this:


private void OnSceneGUI() //runs every frame when scene is opened
{
      Tools.current = Tool.Move;            
}
nhk035 commented 3 years ago

have a look at this https://github.com/autocore-ai/MapToolbox/issues/38#issuecomment-665379094