A
A
Alexander Andropov2019-05-11 15:26:57
Unity
Alexander Andropov, 2019-05-11 15:26:57

How to create a prefab in an object?

Good day. When creating a prefab, how to nest it in an object? To make it a child of the object ?
Thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2019-05-11
@LongOf

Instantiate has an overload with parent - https://docs.unity3d.com/ScriptReference/Object.In...
Or using the SetParent method of transform.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question