cancel
Showing results for 
Search instead for 
Did you mean: 

Imported Assembly from IGlobalClientScript

Brian_Gott
Star Contributor
Star Contributor

Is it possible to import a DLL in Studio and call it from a global client script? Or does the DLL have to be installed on each workstation?

1 ACCEPTED ANSWER

Nevin_Steindam
Star Contributor
Star Contributor

Yes, you can do that.

Despite the name, Unity "Scripts" are actually compiled assemblies. The Unity Client downloads that assembly when it needs to run a client-side script, so any referenced assemblies will be downloaded at the same time.

(I believe, but haven't confirmed, that anything you reference in the GAC is expected to be in the GAC of the client machine. So be careful that client-side scripts only use the "System Assemblies" for basic system libraries that will be on all user's machines.)

View answer in original post

2 REPLIES 2

Nevin_Steindam
Star Contributor
Star Contributor

Yes, you can do that.

Despite the name, Unity "Scripts" are actually compiled assemblies. The Unity Client downloads that assembly when it needs to run a client-side script, so any referenced assemblies will be downloaded at the same time.

(I believe, but haven't confirmed, that anything you reference in the GAC is expected to be in the GAC of the client machine. So be careful that client-side scripts only use the "System Assemblies" for basic system libraries that will be on all user's machines.)

Nevin is correct. However, to confirm, if there is a GAC reference assembly it will need to exist in the GAC on every workstation. GAC referenced DLLs are not automatically downloaded and registered on the client.