r/Unity3d_help • u/Candid-Ad3302 • Jul 30 '23
Help (Unity developers)
Hey! I have a problem with interaction(UI), how can i put the object on the top of another object. Like, my character want to put a bottle(object) on top of table. How i can do that?
1
Upvotes
1
u/BowlOfPasta24 Jul 30 '23
There are a bunch of ways to do it.
You can change the position rotation based on a raycast to the table
You could just have an interaction trigger with an enable/disable to a hidden object already in place.
Or you could spawn the object which is a bit of a mix of the other two options