Hi.
I am using external .dll file input in Plugins folder in unity, using it for communicate with server,
is this only usable at Windows Standalone build?
Can I use this .dll and communication with external server at WebPlayer build also?
Thx.
Hi.
I am using external .dll file input in Plugins folder in unity, using it for communicate with server,
is this only usable at Windows Standalone build?
Can I use this .dll and communication with external server at WebPlayer build also?
Thx.
External dll’s work only for desktop and mobiles: http://docs.unity3d.com/Documentation/Manual/Plugins.html
You can still make custom Mono/.NET assemblies though. Those work on all platforms.
how to make it? I am using .dll made from delphi language. and unity c# to access that .dll
I never really tried to work with Delphi and Unity together, but since it’s .NET, if the dll is an assembly, you can just put it anywhere in your project folder, and from a script, use :
using YourAssemblyNamespace;
or in Javascript
import YourAssemblyNamespace;
This works for all Assemblies I build with C#, but I am not sure it will work with Delphi. Give it a shot though.
.dll file in Plugins folder made from delphi’s source’s top part is like,
library ServerTool;
uses
SysUtils,eventman,networking2,MyServis,LongMath,PowInetProto;
type
TEventRec=record
eventCode:integer;
eventTag:cardinal;
end;
TIntValue=record
idx:integer;
value:integer;
end;
const
version:integer=100;
so I tried using ServerTool;
But error says,
Assets/Standard Assets/Multiplay.cs(7,7): error CS0246: The type or namespace name `ServerTool’ could not be found. Are you missing a using directive or an assembly reference?