cancel
Showing results for 
Search instead for 
Did you mean: 
Ramya_Kondeti
Star Contributor
Star Contributor

It is often necessary to move Unity Script files across systems, be it from Test system to Production system or to send files to Tech Support to resolve some issue. OnBase Studio does not provide a way to export just Unity Scripts as standalone files or assemblies with its Export feature. At least not until now! We added a new feature in Manage Unity Projects dialog that allows you to export Unity Script(s) or Library either as a Code File or as an Assembly or both.

Where can I find it?

When you open "Manage Unity Scripts" dialog from Unity Scripts tab, you will find an Export button at the bottom of the dialog just above the close button.


How does it work?

You can export a single file or multiple files at the same time. Just select the file(s) you want to export and click on the Export button.

You will be presented with the following options

 1. Code File - To export as '.cs' files

2. Assembly - To export as Dll's

3. Code File and Assembly - To export as both .cs files and Dlls

Select whatever option you want to export as and Click 'Next'.

 Then you will presented with a window that lets you choose the location where you want to save the files to and the Code File version. You can export the latest version of the script or the active version. You could also include any assemblies that are being referenced by your script/library.

Click 'Next' and you will be presented with a summary of the options that you selected during the process and the files that are being exported.

 

Clicking on 'Finish' will open the folder that your script was exported to.

You can also export imported assemblies from the "Imported Assemblies" tab in "Manage Unity Projects" Dialog.

What more do I need to know?

When exporting an unpublished script, you can export only the latest version as a Code File. If a published script does not have any active versions then only the latest version can be exported.

"Include Reference Assemblies" includes non-GAC assemblies that are referenced by a Script/Library that's being exported and also the published Unity Libraries that are referenced. Also when this option is checked, a FileNameMap text file is created that shows one-to-one relationships between the file names saved in the folder and the file names as seen in OnBase Studio.

When exporting a Unity Script/Library as an assembly, only the active version can be exported. 

In Conclusion

Exporting Unity Projects is a very powerful feature that allows users to move projects between multiple systems. Projects exported as assemblies can be imported to OnBase studio and can be referenced in other projects.