- Home /
I don't know about Unity, but can it output complete source code
I'm unable to find an answer to this anywhere. Can Unity output full source code to a platform of your choice? e.g. C++/OpenGL or C++/Direct3D. It surely must go through this step to compile an executable, right?
Speaking as someone who knows next to nothing about Unity, I'm wary of beginning to use it because I want maximal control e.g. for programmatic game structure, my own physics, etc., so what is the maximal level of programmatic intervention that Unity allows? Will it allow me e.g. to replace all "gluLookAt" calls with my own custom function?
Sorry if these are dumb and obvious questions, but I couldn't really find the answers anywhere else.
Answer by Cyclops · Jun 17, 2010 at 01:23 AM
Unity may not generate full source code, but it does allow an amazing level of control through its Scripting Languages (which include C# and Javascript). And its physics engine is based on NVidia's Physx Engine. If you can write a better engine than that - sell it. :)
Why not check out the full List of Features in Unity? And since it's a free download, you can test it out for yourself at no cost. Decide for yourself if it can do what you want.
LOL. Well, it's worth it - I spent several months beco$$anonymous$$g proficient at Flash/Actionscript development, only to find all the things I wanted to do, were mostly already built-in to Unity...
Answer by qJake · Jun 16, 2010 at 11:17 PM
You cannot output complete source code from Unity, no. In fact I'm pretty sure most of the popular game engines out there don't let you do that. And of course Unity goes through this step, but it does so internally. Exposing the source code for a game built with Unity has the potential to put the Unity developers out of a job, as it would expose a lot of the "hard work" that Unity takes care of for you.
You can write C++ plugins for Unity, but you must have a Unity Pro license to do so. You can read a short document about Unity C++ plugins here. I'm not really sure where there is more detailed C++ documentation for Unity, perhaps someone else can chime in with some other resources.
Answer by Eric5h5 · Jun 17, 2010 at 03:51 AM
A Unity executable is always the same (which is why the Windows .exe for a Unity build always has the same date, currently November 30 2009; Mac files are processed a little differently and build with the current date). Everything that you do in Unity is basically output as "data files" that are "played" by the Unity executable. So no, there is no source code, there is only a binary, some .dlls, and your stuff.
Your answer
Follow this Question
Related Questions
Does Unity support Array Textures? 0 Answers
How do I output a value to a JS file? 0 Answers
Disabling google analytics 2 Answers
write to a text file in resrouce folder 3 Answers
how to show debug.log messages in visual studio output window? 0 Answers