Skip to main content

Cannot set property name of

Possible solutions:

  • Change the GameObject name.
  • Apply a tag to the GameObject and use GameObject.FindWithTag.
  • Place the sprites in a folder that does not contain any other file with the same name.