- Home /
TTF Text, build for Mac, .dll error
I'm using TTF Text (free version) for some 3d text. When I try to build for Mac, I get these errors:
ArgumentException: The Assembly UnityEditor is referenced by ttftext_lite. But the dll is not allowed to be included or could not be found.
Error building Player: Extracting referenced dlls failed.
As far as I know, .dll files are for Windows only. I tried moving and deleting .dll references and I got a new error, which prevents me from running in unity or building:
The type or namespace name `TTFText' could not be found. Are you missing a using directive or an assembly reference?
Anyone run into this problem or have any ideas?
I facing the same problem as your, and in Windows. Have you solved this yet? I'm trying to contact the developers to notify them about this problem but no reply yet.
Just come across exactly the same error in Windows. Even after removing all apparent references to ttftext dlls from the project, they're getting reinserted somehow on each build. Grrr...
DLL is also the extension used for compiled script code, aka assembly.
Answer by Graham-Dunnett · Oct 09, 2013 at 03:05 PM
Sounds like you have some of the TTF Text scripts outside of the Editor folder, where they need to live. When Unity makes a build it knows that the contents of the Editor folder are for extensions to the Editor, only, and to not include them in the build. If a script uses UnityEditor, then it cannot be used in the build.
Answer by EpiKnightz · Oct 10, 2013 at 02:33 AM
Nah, the dev replied to me saying that this is a known bug and he said that an update will be there "soon". I don't know how does he define "soon" but it's been over a month since his reply and no change at all. And I know that the full version of TTFText (which was updated long long time ago) doesn't have this problem.
If this some kind of trick to force me to buy full version then it's an epic fail.
Answer by eyesore · Dec 05, 2013 at 03:11 PM
I got exactly the same problem on Windows ... the TTFText works ok when running the game inside Unity, but when I do a build I get:
"ArgumentException: The Assembly UnityEditor is referenced by ttftext_lite. But the dll is not allowed to be included or could not be found. Error building Player: Extracting referenced dlls failed."
I fixed it by simply deleting the entire TTFText folder from my Project Assets, and retaining only the generated TTF Text GameObjects in my Hierarchy. I could then build with no problems. If I need to create more TTF Text Game Objects then I'll just need to re-import the TTF package.
I also found a simple alternative to TTFText for generating 3D text. I use the free version of Google Sketchup (Sketchup $$anonymous$$ake) to generate some 3D text, then use this Google Sketchup plugin: OBJexporter to get a .obj for importing the generated 3D text into unity.
Answer by SwampN3rd · Aug 14, 2014 at 05:42 PM
I am having the same issue. I have a workaround though its not great.
I created all the text objects that I wanted.
I saved the text mesh for each text object to an asset folder in the project.
I removed the TTFText Script from all of the text objects in the scene.
I moved the folder containing the entire TTFText plugin up one directory. That way unity does not try to import the scripts or .dll files for TTFText.
for each text object in the scene I select the correct mesh for the mesh filter from the saved meshes in the second step.
The down side to this is that you will have to move the plugin folder back if you want to make more 3D text objects.
Your answer
Follow this Question
Related Questions
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
Ios build issue: 2/11 Layout systems 1 jobs 0 Answers
[SOLVED] Unity 5.3.1 MacOS X Build Crashes 1 Answer
Standalone MacOS build - PlayerIcon.icns problem 1 Answer
Build & Run won't finish 0 Answers