D
D
Dmitry Korolev2016-05-26 22:12:09
C++ / C#
Dmitry Korolev, 2016-05-26 22:12:09

NullReferenceException: Object reference not set to an instance of an object?

why does the error occur?
NullReferenceException: Object reference not set to an instance of an object
Clip.Update () (at Assets/Game/Scripts/Clip/Clip.cs:16)
d24acd32ae7b4c929a7b877bdf2a9e92.png
pastebin.com/m6BZ6J94
because it doesn't see the plower in radius less than five?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
asdz, 2016-05-26
@adressmoeistranici

Can't find the player?
GameObject.FindGameObjectWithTag("Player")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question