inkle / inkle/ink-unity-integration

Open at line from inspector opens default script editor, not system default for ink files.

Open
#10 2 comments 0 reactions 0 assignees View on GitHub
bug help wanted requires inky update
Dominant language
C#
Stars
716
Forks
115
PR merge metrics
No merged PRs in 30d

Description

Current call uses UnityEditorInternal.InternalEditorUtility.OpenFileAtLineExternal, which treats the file as a script file. Ideal behaviour is to open ink files using system default program.
AssetDatabase.OpenAsset does this, but passing in a line number doesn't work, probably because Unity parses the file as a DefaultAsset, rather than a TextAsset.

I've tinkered a bit, but I've got no solutions for this - if anybody does, I'd love to hear it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.