snozbot / fungus

An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
MIT License
1.62k stars 288 forks source link

Unity Input package support #832

Open stevehalliwell opened 4 years ago

stevehalliwell commented 4 years ago

In Unity 2020.1 the new Input package is verified and as such we should be able to have it take the place of the any existing Input calls directly in fungus. This has also already been raised previously by the community.

Describe the solution you'd like Most likely a factoring of Fungus to allow notification of the actions rather than direct polling itself

Additional context This should also allow for easier testing and autoplay of the game as direct binding to Input should be removed.

danac78 commented 3 years ago

@stevehalliwell merging didn't close this issue ;)

stevehalliwell commented 3 years ago

@stevehalliwell merging didn't close this issue ;)

Github only enacts the closing keywords when the commit makes it to the default branch. So some may hang around until 3.14 is released and is merged into master. I've been manually closing some of the issues in an effort to keep the milestone list readable.

danac78 commented 3 years ago

Ahh ok. Just been following along because can't wait for 3.14. ;)

breadnone commented 2 years ago

Migrating to the new InputSystem would break those games that were released I think.

Also, Unity supports both legacy and new InputSystem run in tandem at the same time https://forum.unity.com/threads/using-old-and-new-input-system-at-the-same-time.1154678/

esklarski commented 2 years ago

Fungus does seem to work fine in Unity 2021 with the new input system.

Cloning the develop branch and adding the asmdef reference was all I needed. I've only gotten to Hello World, but it seems to all work.

esklarski commented 2 years ago

So I have succsefully forked the develop branch and made some changes to bring Fungus to Unity 2021 using the new Input System. Tis a hack'ish thing, but by removing the examples and implementing a few small changes, I have it working.

If anyone is interested in trying it out see: Fungus 2021