Y
Y
yraiv2020-05-21 17:04:03
Unity
yraiv, 2020-05-21 17:04:03

How to create an object in place of another object?

How to make an object in the place of another object? I can create, but it is impossible to set the coordinates. Some component of the object should be taken and equated to it, or what?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
piffo, 2020-05-21
@piffo

You create the second object according to the coordinates of the first.
What to mumble then.
Instantiate(obj2, obj1.transform);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question