- Home /
Question by
sapressaonenem · Mar 03 at 02:25 AM ·
executable
how can i generate an .exe file trough scripting in unity?
how can i do that? i'm planning to create a application packer(for unity apps only) but i'm facing this problem, so, how can i build a .exe file?
Comment
with the given information that is not really answerable. What are you planning exactly? Can you share more details?
In general you need some form of compiler and some project files to create an executable.
In particular, why are you planning to do this within unity? On the face of it, it sounds more suited to (for example) a Visual Studio project.
Answer by sacredgeometry · Mar 05 at 02:02 PM
You have to use the BuildPileline, whilst targeting windows.
https://docs.unity3d.com/ScriptReference/BuildPipeline.BuildPlayer.html