inkle / ink

inkle's open source scripting language for writing interactive narrative.
http://www.inklestudios.com/ink
MIT License
4.14k stars 494 forks source link

How to use TagsForContentAtPath? #727

Open Syjgin opened 2 years ago

Syjgin commented 2 years ago

Hello. I'm trying to use TagsForContentAtPath for displaying tags of not yet selected choice, but can not get it's info: foreach (var choice in _inkStory.currentChoices) { var tags = _inkStory.TagsForContentAtPath(choice.pathStringOnChoice); if (tags != null) { foreach (var message in tags) { DebugLogger.Log(message); } DebugLogger.Log("---"); } } choise is defined like this: * [take tutorial] -> first_tutorial === first_tutorial === Welcome to tutorial! {currentPlatform} # tag1: 10 tag2: blue -> DONE Is it possible for now to get choice info by it's path string on choise, or TagsForContentAtPath must be used differently?