简体   繁体   中英

debug c# without unity3d editor

I'd like to devlop c# part of unity3d game without installing unity3d on my work computer. I can build it with dll's. But i can't run this project outside unity3d environment. Is there any solutions for such way of development?

There are no such solutions.

First of all unityengine.dll is basically a wrapper around native objects which are maintained by the engine. It needs unity to work properly.

The second thing is the engine design. There are two approaches for game engines - the loop based and callback based.

The loop based design expects your code to have a method, similiar to "main" except that the engine call's it on every frame. The example is XNA.

Unity however uses the callback based approach. It invokes the callbacks you provide and the order in which they are called is determined solely by the engine.

So even if you find/make an assembly that mimics unityengine API, and manage launch your code you still can't guarantee that it will behave the same way in the game, since the order of oxecution will most likely be different.

如果它是一个基于统一的项目,那么它可能取决于运行的统一引擎资源,因此您需要使用统一来运行未构建的版本。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM