如何在Android Studio中编辑统一导出的gradle项目(主要是统一的.cs文件/脚本) [英] how to edit unity exported gradle project in android studio (mainly unity's .cs files / scripts)

查看:171
本文介绍了如何在Android Studio中编辑统一导出的gradle项目(主要是统一的.cs文件/脚本)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经导出了Unity制作的游戏,并将其导出到Android Studio中(使用Unity构建面板,使用带有导出选项的Gradle构建并勾选了导出选项).

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.

然后我去了Android studio并导入了该项目.在此过程中遇到了很多问题(build.gradle错误等等),花了很多时间直到所有错误都得到解决(这意味着我可以在移动设备上测试该应用程序).

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).

现在,我要编辑一些.cs文件. 我需要更新和更改一些脚本. 但是我不想回到Unity,对其进行编辑,然后重新创建另一个版本,然后将该项目导入Android Studio,然后再花2天的时间来解决问题.

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.

现在,我想以某种方式编辑.cs文件,而无需重做上述过程,但是我找不到导入项目文件夹中的任何文件.

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,

推荐答案

不幸的是...

您将必须返回Unity,对其进行编辑,然后重新创建另一个版本,然后将项目导入Android Studio.然后可能还要再工作2天以解决问题.

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.

编译后,脚本不是任何可读格式:已被编译为dll或其他类似的二进制文件.您可以通过在(Android Studio)项目中搜索一个您知道在其中一个脚本中出现的字符串来确认这一点.您将找不到它.

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.

这篇关于如何在Android Studio中编辑统一导出的gradle项目(主要是统一的.cs文件/脚本)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆