Search Unity

Bug Can't attach scripts to objects

Discussion in 'Linux' started by knobby67, Apr 7, 2018.

  1. knobby67

    knobby67

    Joined:
    Aug 30, 2015
    Posts:
    389
    Hi All,
    I'm suddenly getting this error "Can't add script behaviour VisualContainerAsset. The script needs to derive from MonoBehaviour!" when trying to attach scripts. It started on new scripts. But now I'm finding even with an already working script if I remove from an script and reattach it won't work.
    Can anyone advise please?
     
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Hi knobby,
    Could you please submit a bug report with a minimal reproduction project for this issue? You can find guidance for that here: Bug Reporting
     
    knobby67 likes this.
  3. knobby67

    knobby67

    Joined:
    Aug 30, 2015
    Posts:
    389
    Sorry found issue all my scripts had gone to lower case for the script name. I’m unsure why...