How can I make the objects show at the middle of the table?

Hi, I have this issue where MARS places objects hanging off the table. How can I make it find the center of the table and place it there? Also once the object is placed I would like the user to have an option to adjust the location in xz and the scale of it. Is that possible? I would appreciate your help

By default when you author a proxy it will be centered - you can see where itā€™s position will be by looking at the plane visualization in the scene view.

Example:

Iā€™m guessing in this case your content is already is centered and what is happening is the detected plane is merged between the chair and the table. This is a typical device limitation pain point - but also why our device view displays ā€˜imperfectā€™ data - your intuition to have a user adjust the location xz + scale is a good solution.

Adjusting the position/scale/rotation after placement is possible. There isnā€™t anything really MARS-specific about that so we havenā€™t offered an out of the box solution for it - you would select and move it like any other object in Unity. An update of the direct placement template is going to have this functionality as well - Iā€™ll ping this thread when itā€™s available.

2 Likes

Thanks :slight_smile: Is there a template called ā€œdirect placementā€? As I understand adjusting the position/ scale/ rotation is aleardy possible in XR Interaction Toolkit? Unity Blog Does MARS allow to access these features in a way that does not require to code?

You can find the direct placement template in this thread (itā€™s in active development):

1 Like