Open ViewportGames opened 8 years ago
Awesome, really excited that you're thinking of working on this!
I would definitely lean towards reducing the dependencies as much as possible for samples, especially if they cost money. We didn't look into TextMeshPro for the Unity implementation of 80 Days... so I guess we coped without. (Though to be fair, perhaps we might've been massively better off if we had!) Perhaps it's worth focussing on one "advanced" example that does use it...?
I should mention that early next week we're planning to release a sample game of our own called The Intercept, which I guess is a version of (1), although it's quite visually rich.
Here at inkle, @tomkail was mentioning that he was interested in putting together a Sorcery map movement template for a game jam, so that would be pretty awesome to see!
Otherwise, I think I'd be most interested in option 3 from your list. I like the idea of a template that can simply be skinned, and a really visual one at that, allowing them to focus on the content.
For 1, it would be good to see lines fit text boxes automatically, without having to manually define character length to fit the size of the box. Alternately it might be an interesting experiment to try making a text box that fits to the size of the text.
Is 3 really doable in ink now without scripting functions in? I would be worried it would become a mess of functions that have to be bound (nevermind what this would look like from the ink file). It might be good to think about it apart from text boxes, too. That way you could use the same function to focus the camera on a character for example.
The big catch to implementing ink into Unity seems like it would mostly be wiring functions up. Ideally it would be done through the inspector, where it pulls out what functions are needed form the story and handles binding names so that there is no chance of misspelling, conflicts from multiple instances trying to bind, or extraneous functions.
You can do text fitting in Unity really easily these days using the "best fit" option on a text component, so hopefully that one is solved for us!
Assuming I understand your meaning, the way we're looking at handling scripting functionality in ink is to add meta data, which gets parsed as it's read - for example "
Meta data could be a good way to go about it, as another layer to read off the story per line. Maybe declare them or something to get some level of spellchecking.
Best Fit in Unity text is actually very poor. And when you get into per character animation it gets even worse (This is one reason why I say TextMeshPro is "essential". See this video: https://www.youtube.com/watch?v=h1Z2jcB4aaQ).
I've already done my own basic ink integration into Unity, so looking forward to seeing what you guys came up with!
Any updates on this? I've had a bear of a time with Unity and I rather despair ever getting the hang of it.
Check out Ink's Unity Integration project here on GitHub, and The Intercept example game. I've been swamped and haven't had a chance to work on my JRPGish template very much...
im planning to recreate this game in unity engine
I think I'm going to make a few basic UI templates for displaying ink stories. One of the things I'm trying to decide is whether to rely on the TextMeshPro plugin, which I believe is essential for anyone trying to make a Unity game with text (in-line styling and animation and everything you could possibly want to do with text is just so simple, not to mention actual accurate word-wrapping and resize to fit and rendering and and and). But it's also $65USD and I'd hate to leave out people who can't afford that. Maybe a separate example that shows specifically what can be accomplished with Ink and TMP working together? Thoughts?
Ideally the Ink stories could serve as practical examples for everything covered in the "Writing With Ink" documentation, but my primary focus is on demonstrating how to display Ink in Unity UI. Here are the examples/templates I'm planning: