Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tomkail opened this issue May 20, 2016 · 2 comments
Labels
bug help wanted requires inky update This task requires a change to be made in the Inky repo before it can be addressed.

Comments

@tomkail
Copy link
Collaborator

tomkail commented May 20, 2016

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.

@tomkail tomkail added the bug label May 20, 2016
@Neikice
Copy link

Neikice commented Aug 31, 2016

OpenAsset can work .Test in Unity 5.4.0f3.

            AssetDatabase.OpenAsset(AssetDatabase.LoadAssetAtPath<TextAsset>(Path), LineNumber);

@tomkail
Copy link
Collaborator Author

tomkail commented Sep 10, 2018

Hmm, the issue for me is that it doesn't launch the right line in Inky, so it might be that inky is the real issue. What we have works fine, so I'll leave it unless anyone thinks otherwise

@tomkail tomkail added help wanted requires inky update This task requires a change to be made in the Inky repo before it can be addressed. labels Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help wanted requires inky update This task requires a change to be made in the Inky repo before it can be addressed.
Projects
None yet
Development

No branches or pull requests

2 participants