Author Topic: Unity3d support  (Read 14026 times)

sandworm

  • Community Member
  • Posts: 16
  • Hero Points: 1
Re: Unity3d support
« Reply #15 on: April 22, 2012, 12:39:51 am »
Ha! I am writing in C# :)

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5779
  • Hero Points: 461
Re: Unity3d support
« Reply #16 on: April 22, 2012, 01:10:50 am »
That helps. In order for your code to call APIs in their DLL there must be a .net-like DLL. Doesn't unity use mono for its c# implementation? If so, it uses the same .net CLI format for .DLL files.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5779
  • Hero Points: 461
Re: Unity3d support
« Reply #17 on: April 22, 2012, 12:42:24 pm »
The files you sent work perfectly. The .xml file is recognized as a .net symbol file with comments. The .dll is recognized as  .net CLI DLL.

The .dll file has two namespaces (UnityEngine, UnityEngineInternal). The .xml file has two namespaces (System, UnityEngine). Tons of symbols under these.

Go to Tools>Tag Files to create a tag file with these symbols.

Press the "Add Tag File..." button to create a new tag file. Choose the language C# to add the tag file for C#. Specify an name like unity.vtg.

Use the "Add Files" button to add the files to the tag file.
In order to view your files, you will need to change the File Types in the open dialog. Just type "*.dll" or *.xml" to view one of your file types.

Once you added your files to the tag file, you can view the symbols in the Symbols tool window by expanded the tag file you created.

Just ask if you get confused creating the tag file.
« Last Edit: April 22, 2012, 07:05:15 pm by Clark »

sandworm

  • Community Member
  • Posts: 16
  • Hero Points: 1
Re: Unity3d support
« Reply #18 on: April 22, 2012, 07:19:02 pm »
That worked a treat! Thanks a million, Clark. I really appreciate your taking the time to walk me through this. I'm going to spend a few days getting used to SlickEdit, then spread the word.

sandworm

  • Community Member
  • Posts: 16
  • Hero Points: 1
Re: Unity3d support
« Reply #19 on: April 22, 2012, 07:35:28 pm »
Hey Clark, I started a new project in my working folder, but it doesn't seem like the tag file that we had created is being assigned to it. Do I have to associate it somehow?

EDIT: Never mind, I got it. This is awesome :)
« Last Edit: April 22, 2012, 08:35:27 pm by sandworm »

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5779
  • Hero Points: 461
Re: Unity3d support
« Reply #20 on: April 22, 2012, 09:49:04 pm »
I'm going to investigate this more. We may have time to add unity to our automatic tagging.   

sandworm

  • Community Member
  • Posts: 16
  • Hero Points: 1
Re: Unity3d support
« Reply #21 on: April 22, 2012, 10:00:35 pm »
That would be truly epic. The unity forums are filled with people looking for an alternative to MonoDevelop on Mac. Please let me know if you end up going forward with it!

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5779
  • Hero Points: 461
Re: Unity3d support
« Reply #22 on: April 22, 2012, 11:42:13 pm »
I already started. I'll let you know.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5779
  • Hero Points: 461
Re: Unity3d support
« Reply #23 on: April 23, 2012, 02:32:40 pm »
Unity support is done for Mac and Windows. I plan to work on Linux next. It will be in the next v17 beta.

It's very automated. When you edit a C# file and type something (like '.' or '(') which requests symbol information, it automatically builds a tag file for UnityEngine.dll and the C# framework (mono on Mac and Unix, Microsofts DLLs on Windows) if it can find installations for them.

sandworm

  • Community Member
  • Posts: 16
  • Hero Points: 1
Re: Unity3d support
« Reply #24 on: April 23, 2012, 02:37:28 pm »
Nice job Clark!! I can't wait to get v17!

EDIT:
I have posted a note on the Unity forum to let people know about this awesome upgrade.
http://forum.unity3d.com/threads/133323-SlickEdit?p=901264#post901264
« Last Edit: April 23, 2012, 02:43:21 pm by sandworm »

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5779
  • Hero Points: 461
Re: Unity3d support
« Reply #25 on: April 23, 2012, 03:03:01 pm »
Unity isn't available for Linux. I thought it was because MonoDevelop is available.

sandworm

  • Community Member
  • Posts: 16
  • Hero Points: 1
Re: Unity3d support
« Reply #26 on: April 23, 2012, 04:04:50 pm »
Oh, that's not the issue at all. The problem is the MD mac port that Unity distributes. It works (kind of), but it's not native cocoa and it's just really irritating to work with. It's the Unity mac users that are going crazy for a nice IDE.

sandworm

  • Community Member
  • Posts: 16
  • Hero Points: 1
Re: Unity3d support
« Reply #27 on: April 23, 2012, 10:17:55 pm »
I should have let you know Clark, there is another UnityEditor dll that I didn't send over. You should probably integrate this one as well.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5779
  • Hero Points: 461
Re: Unity3d support
« Reply #28 on: April 23, 2012, 10:21:13 pm »
I saw unityeditor.dll. I'll add that as well. Why doesn't unity ship the .xml files anymore?

sandworm

  • Community Member
  • Posts: 16
  • Hero Points: 1
Re: Unity3d support
« Reply #29 on: April 23, 2012, 10:24:49 pm »
No idea...