W
W
WasTabon2021-04-04 14:04:14
Unity
WasTabon, 2021-04-04 14:04:14

Why do all values ​​from another script return null?

And so, I get access to other scripts through
public Works works;
60699cd3bf7cf416579517.png

And then I just take it and write works.integer
. But all of them are returned as null for me, absolutely everything, even string
Because of what this can be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2021-04-04
@WasTabon

If you have this one Курьерin the prefab, but Workson the stage, then it will not work. For while saving the prefab, the link falls off, tk. the prefab is self-contained and cannot have external links.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question