Jump to content
Sign in to follow this  
eyebopco

"The referenced script on this Behaviour is missing!" when removing ProGroups

Recommended Posts

Hi there,

 
I'm having trouble removing ProGroups from my project. The moment I delete the ProCore and ProGroups directories I get two of these warnings:
 
The referenced script on this Behaviour is missing!
 
When I highlight this in the Unity console it doesn't select a corresponding object in the Hierarchy or asset in the Project window. When I double-click on the message I get the following in the Inspector:
 

post-368-0-23383400-1450736367.png

 

Below that it's empty in the Inspector. No transform, nothing.
 
I've searched high and low for this object instance. But it's nowhere to be found. I've employed scripts that search all scenes/assets for missing references without luck.
 
I get this warning in my (iOS) builds, too, which is my main issue.
 
The moment I re-import ProGroups the warning goes away. I've then tried using the "Tools > ProGroups > Delete all groups from scene" in all my scenes before deleting ProGroups from the project, but that doesn't work either.
 
The following messages appear whenever the scripts rebuild (just before hitting Play in the Editor):
 
post-368-0-29422800-1450736451.png

 

Any idea where I should look?

 
Many thanks,
Peter

 

post-368-0-23383400-1450736367_thumb.png

post-368-0-29422800-1450736451_thumb.png

Share this post


Link to post
Share on other sites

  1. Create a new folder named Editor.
  2. In that folder, create a new C# script named RemoveProGroups.cs
  3. Paste in the contents below
  4. Run Tools > ProGroups > Remove ProGroups Object menu item

using UnityEngine;

using System.Collections;

using UnityEditor;

public class RemoveProGroups : Editor

{

    [MenuItem("Tools/ProGroups/Remove ProGroups Object")]

    static void Init()

    {

        GameObject go = GameObject.Find("Progroups2_Groups_Container_Object");

        if(go != null)

            GameObject.DestroyImmediate(go);

    }

}

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×