Unity3D source code .

If to make a plugin for unity you need to access unity’s source code . can you say that unity give access to their source code ?

Why do you think you need access to the Unity source code? Have you looked through the Editor scripting API? It’s very powerful and versatile, and nearly every plugin you’ve ever seen for Unity was developed with it (and without source code access).

It IS possible to get source code access, however it requires a special license that would have to be negotiated personally with UT. And it wouldn’t be cheap.

tl;dr: I’m certain you both can’t afford and don’t need source code access.

It has stuff about native code in there, so what is that native code for?..

I believe that is for more generic DLL’s. So if you wanted to create an object based collection like a SQL reader or some other property that doesnt exist in Unity, you would create all the objects, methods and properties you want to use in a Windows, Mac or Linux based environment, then use the dll to do things in game.

I see, thanks .

Nothing to do with Unity source code.

No, not really. That sort of thing can easily be a managed code DLL (or even just scripts) and doesn’t require any native code. Native code is for something that Unity has no access to at all, or potentially for performance reasons.

–Eric

Example of stuff we needed native code for…

  • Bluetooth communication
  • Third party webcam facial/pattern/QC code recognition
  • Seamless video play (Unity’s has an issue on iOS where the apps appear to “exit the apps” when playing video)
  • Scaleform (third party renderer)

But usually, for 95% of our stuff, we don’t need any native.