Why can't I drag text into the inspector?

  • 0
    There is a text in the canvas - the number of cartridges in the clip. In the script, it is used to visualize the loss of cartridges when firing (The script hangs on the player's prefab). I try to drag an object with text into the script in the inspector, but nothing comes out ... Is this an engine bug or an error on my part?

    Unity Game Engine Carter Russo, Aug 24, 2019

  • 1 Answers
  • 0
    Not a bug, apparently the classes are different, for the field and for the text component (although both are called Text). Check which one is from.

    PS: I didn't guess - in this case we tried to add a link to an object from the scene to the prefab template.

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!