Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

error CS0234: UnityEditor.Animations does not exist. Build failed.

A topic by Javier Salcedo created Feb 23, 2019 Views: 2,697 Replies: 5
Viewing posts 1 to 3
Submitted

Hi,

we were about to build and submit our project when we have encountered this error message:

error CS0234: The type or namespace name 'Animations' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

This comes from this line in the code:

using UnityEditor.Animations;

The game works well in the editor and I've found little if any documentation regarding this error.

We cannot build our project, the game simply won't work without that piece of code and there is no enough time to  make a workaround. 

I know this won't get in time, but I would really appreciate any explanation, even if it is only useful to avoid it happening again.

Thanks.

Submitted

Why does it need a reference to animations when it comes standart?

What errors do you get when removing that line?

Submitted

I don't really know, it's a new custom tool that our designer made. Unfortunately he's MIA right now.

Removing it doesn't give any errors, but the game won't load because of our own dependencies.

Do you have any clues of why would Unity not find its own stuff? It's more curiosity than anything at this point to be honest.

Submitted

Probably unity editor uses this asset but not the platform you are trying to build.

Host(+1)

The UnityEditor assembly is only available in the editor, not the builds.

Submitted

Makes sense. I'll tell the team, thanks!

In the end, the designer came back and made it work around 8:30, so just in time! 

Thank you for the responses! :)