Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

peartreegames/evt-ink-variables

Repository files navigation

EvtGraph

Code for "Extending the ScriptableObject Variable Architecture to Ink Variables" YouTube videos

Installation

Can be installed via the Package Manager > Add Package From Git URL...

This repo has a dependency on the EvtVariable package which MUST be installed first. (From my understanding Unity does not allow git urls to be used as dependencies of packages) https://github.com/peartreegames/evt-variables.git

then the repo can be added

https://github.com/peartreegames/evt-ink-variables.git

Usage

  1. Create EvtStoryObject asset (Evt > Ink > StoryObject)
  2. Create EvtInkVariableCollection asset (Evt > Ink > Collection) for each file/group of variables*
  3. Drag EvtStoryObject and inkFile into EvtInkVariableCollection and click Generate

*You can modify the generate function to build the entire story with all variables from all files into one EvtInkVariableCollection I have broken it down by file to keep them manageable in the hierarchy, but this isn't necessary. Modify the Story compilation to something like this

var compiler = new Ink.Compiler(AssetDatabase.GetAssetPath(_inkFileProperty.objectReferenceValue)), new Compiler.Options
{
	countAllVisits = true,
	fileHandler = new UnityInkFileHandler(Path.GetDirectoryName(AssetDatabase.GetAssetPath(_inkFileProperty.objectReferenceValue)))
});

Updates from Video

  • Modified Story dependency in EvtInkVariables to use an EvtStoryObject set upon creation, rather than pass it in in Init function.
  • Created EvtInkListObject

About

No description, website, or topics provided.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages