inkle / ink-unity-integration

Unity integration for the open source ink narrative scripting language.
http://www.inklestudios.com/ink
Other
570 stars 99 forks source link

Unity saying "UnityIntegration" does not exist in the namespace "Ink" #176

Closed ElijahShaver closed 1 year ago

ElijahShaver commented 1 year ago

So, for context, I'm making an RPG game using Unity, and found out that Ink is a great tool for the dialogue. Development has went smoothly, and up until now, I had no issues with it. UnityIntegration worked great in both Visual Studio and in Unity. Every time I playtested my game in the editor, no exceptions occurred regarding it. However, when I actually began to make a build of the game, disaster struck. For anyone curious, I used this tutorial to store a global ink file with variables: https://youtu.be/fA79neqH21s

I have no idea why this is happening. I do have a backup idea planned in case I can't find a fix, but I'm asking just in case there is one. Thanks in advance! issue issue2

tomkail commented 1 year ago

Hey! InkFile.cs is an editor script, so you can’t build with references to it. You probably need to wrap some of your code in #IF UNITY_EDITOR tags.

On Thu, 15 Dec 2022 at 17:49, ElijahShaver @.***> wrote:

So, for context, I'm making a game using Unity, and found out that Ink is a great tool for it. Development has went smoothly, and up until now, I had no issues with it. UnityIntegration worked great in both Visual Studio and in Unity. Every time I playtested my game in the editor, no exceptions occurred regarding it. However, when I actually began to make a build of the game, disaster struck. For anyone curious, I used this tutorial to store a global ink file with variables: https://youtu.be/fA79neqH21s

I have no idea why this is happening. I do have a backup idea planned in case I can't find a fix, but I'm asking just in case there is one. [image: issue] https://user-images.githubusercontent.com/89484052/207983202-11f085ed-ee85-479c-af00-a674ac908d3b.png [image: issue2] https://user-images.githubusercontent.com/89484052/207983209-c12bacdc-3000-45b7-80c7-61b7d5479f45.png

— Reply to this email directly, view it on GitHub https://github.com/inkle/ink-unity-integration/issues/176, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJR3UEPW5KN7XNFQ2NX7XTWNOOAXANCNFSM6AAAAAATAIEF7M . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ElijahShaver commented 1 year ago

Ah ok, that makes sense. Thanks for telling me! I'll see if I can find out how to do that :)