Error CS0029 Cannot implicitly convert type 'bool' to 'UnityEdiotor.ModelImpotterClipAnimation[]'how fix?

How I can fix it?

        if (assetPath.Contains(objectName))
        {
            ModelImporter modelImporter = ModelImporter.GetAtPath(assetPath) as ModelImporter;
			modelImporter.clipAnimations = true;
            modelImporter.generateAnimations = ModelImporterGenerateAnimations.InRoot;

1 Answer

1

This line is the problem:

modelImporter.clipAnimations = true;

What are you trying to do?

I have downloaded a Project from the Internet, i have it patch to the new Version from Unity.. but it Doesn't work... Here is the Link: http://www.youtube.com/watch?v=vIggcY8uVcE