I
I
Iliaity2015-10-09 19:00:04
Unity
Iliaity, 2015-10-09 19:00:04

What is the need for the as keyword?

Why is an explicit cast needed in GameObject ?
7525e136055940588d69390469975ced.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-10-09
@Iliaity

Because this overload of the Instantiate method returns exactly UnityEngine.Object.
docs.unity3d.com/ScriptReference/Object.Instantiat...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question