private static bool GuessIfUserIsLookingForAnAsset(string requiredClassName, bool checkGameObject)
{
string[] strArray = new string[] {
"AnimationClip", "AnimatorController", "AnimatorOverrideController", "AudioClip", "Avatar", "Flare", "Font", "Material", "ProceduralMaterial", "Mesh", "PhysicMaterial", "GUISkin", "Shader", "TerrainData", "Texture", "Cubemap",
"MovieTexture", "RenderTexture", "Texture2D", "ProceduralTexture", "Sprite", "AudioMixerGroup", "AudioMixerSnapshot"
};
if (checkGameObject && (requiredClassName == "GameObject"))
{
return true;
}
for (int i = 0; i < strArray.Length; i++)
{
if (strArray[i] == requiredClassName)
{
return true;
}
}
return false;
}