Skip to main content

TypeError Cannot read property $clone of undefined

You are trying to access a prefab without it being instantiated. This does not work in Luna as you’ll access a proxy, which is empty (to save loading time).

Possible solutions:

  • Instantiate the prefab before accessing it’s properties.
  • Use scriptable objects instead.

images-small