how to edit unity exported gradle project in android studio (mainly unity's .cs files / scripts)

拜拜、爱过 提交于 2020-01-06 14:32:09

问题


I have exported a game made in Unity and exported it to Android studio (using Unity build panel, using Gradle build with export option ticked) in Unity.

Then I went to Android studio and imported the project. Got lots of problems in the process (build.gradle errors and many more), spending lots of hours until all errors are fixed by now (meaning I can test the app on my mobile).

Now I want some of the .cs files edited. I need to update and change some of the scripts. But I don't want to go back to Unity, edit them, and recreate another build, and then import the project to Android studio, and then work another 2 days to fix the problems.

Now I would like to edit .cs files somehow without redoing the above process, but I can't find any of the files I had in the imported project folder.

Can anyone please help me? Note: I am a very inexperienced coder, so I appreciate keeping this mind while responding, thanks,


回答1:


Unfortunately...

You will have to go back to Unity, edit them, and recreate another build, and then import the project to Android studio. Then probably work another 2 days to fix the problems.

After compiling your scripts are not in any sort of readable format: it's been compiled down to a dll or other similar binary. You can confirm this by searching your (Android Studio) project for a string that you know appears in one of your scripts. You won't be able to find it.



来源:https://stackoverflow.com/questions/51118379/how-to-edit-unity-exported-gradle-project-in-android-studio-mainly-unitys-cs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!