Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Possible to open external editor via C# script to file/line number?

Discussion in 'Scripting' started by glennpow, Jul 31, 2013.

  1. glennpow

    glennpow

    Joined:
    Jan 30, 2012
    Posts:
    56
    I'm trying to get some more comprehensive debug stack trace functionality, so I'd like to be able to open my editor (MonoDevelop) to a specific file and line number, via a C# editor script. Does anyone know if that's possible, and if so, how to do it?
     
  2. exiguous

    exiguous

    Joined:
    Nov 21, 2010
    Posts:
    1,749
    taken from lacost's todolist from code:
    UnityEditorInternal.InternalEditorUtility.OpenFileAtLineExternal(classPath, line);
     
    Eldoir likes this.
  3. FlaSh-G

    FlaSh-G

    Joined:
    Apr 21, 2010
    Posts:
    212