8000 Check if a knot contains visible text without using Continue() in Unity · Issue #941 · inkle/ink · GitHub
[go: up one dir, main page]

Skip to content

Check if a knot contains visible text without using Continue() in Unity #941

Open

Description

@leandrom4rquez

Here’s the situation:

Some of my knots are used just to set variables and contain no visible text. And I want to check, before calling Continue(), whether the knot has any non-empty player-visible text.

Any help or insights would be greatly appreciated!

Activity

  1. jakesee commented on Jul 15, 2025

    @jakesee

    Unfortunately, Continue() will generally return empty lines for various reasons. A knot, for example, cannot be totally null, it will return at least 1 empty line.

    Since only the ink will know whether there will be printable text, I use a boolean ink function to return true/false and call it from C# code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0