-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Unity Analytics as a mandatory dependency of com.unity.ml-agents #5064
Comments
Hi @JesseTG Thanks for bringing this to our attention. This package should only have an impact on the Editor, and not the builds containing ML-Agents. Can you share what error you are running into, and at what point it is occuring? It is when importing the package, or when trying to build for your platform? It would also be helpful to know the specific platform which you are having issues targeting, as that will help us to reproduce the issue. |
The platform I'm using does not support Unity Analytics; when I set it to be the active build platform, all Unity Analytics APIs are simply unavailable, resulting in compiler errors. This occurs in the editor, so I assume it would be the same when building. I get pretty much the same error in multiple places, all in
Unfortunately, I can't publicly say which platform I'm targeting as its details are confidential. However, there are other useful things I can say:
|
Is the platform you are using under NDA? Or is there a define that the analytics code uses that we aren't aware of? |
The platform itself is under NDA. Well, its development details. The platform itself is quite famous (and odds are good you have one in your living room -- or in your backpack). No unusual |
Thanks for the info @JesseTG, |
Thank you! I appreciate it. |
@JesseTG, |
I'm using 2020.2.7, and I intend to upgrade to 2021.1.0 when it comes out.
With pleasure, thank you very much! When's the next release? |
There is a release coming out this week, but it will not contain these changes. The changes will make it into the April release alongside the changes to make physics and physics2d optional dependencies as well. |
Thank you! I'll report back if there are any problems. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Is your feature request related to a problem? Please describe.
I'm developing a game for a platform that Unity Analytics does not support. Since
ml-agents
depends oncom.unity.modules.unityanalytics
, this means that I can't useml-agents
on said platform.Describe the solution you'd like
Only enable the features that use Unity Analytics if
com.unity.modules.unityanalytics
is installed in the project.Describe alternatives you've considered
Manually removing the Unity Analytics DLL from the build pipeline. I don't know if this would work.It wouldn't work as this is a compiler error. The only alternative is to work on something else while this issue is resolved.Additional context
Setting aside the issue of compatibility, I'm removing unused core Unity modules from my project to keep the file size down. For example, my game doesn't use terrain so I'm excluding the terrain module.
The text was updated successfully, but these errors were encountered: