Why are scripts checked for duplicate dependencies in analyze?

Using v1.8.4

So I’ve been trying to cleanup my addressables and fix the duplication across my groups.
I keep getting warnings saying some scripts have duplicate scene references.
Why are scripts included in the analyze tool? I was under the impression scripts are not part of Asset bundles.
For example:

I have some custom scripts “ColoredObject” and “LightObject” that are both used in my addressable assets and scenes. I also have some addressable assets using Light2D from URP.

Why are these .cs files being analyzed? Can I not have scenes and addressable assets referencing the same scripts?
Hopefully this is just a bug in the analyze tool.

1 Like

This has been regularly reported for some time. Scripts are not packed in bundles so it is a bug in the analyze tool. Sadly the amount of false positives makes this tool useless.

Totally agree that scripts should be removed

@TreyK-47

+1. For any project of a decent size this makes the analyze tool useless since its filled with scripts.
My project has over 10000 asset bundles and is showing over 2700 duplicates for one scene alone, with majority of them being for a script file. How am I supposed so sort through that in any reasonable time period?

Still same problem on 1.16.15
Can we at least get some filtering options in the analyze tool?
I don’t want to see 100+ script duplication warnings when I’m only looking for asset duplication. Makes it very hard to find actual problems.

Hey all! I’ll flag this for the team to provide some insight.

I’m sorry to hear this. To my memory, this is the first I’m hearing about this. I don’t guess any bugs that have been filed have made it to our team for one reason or another. If there were threads about this then I’m sorry we missed them.

This is obviously wrong. I just filed a bug on our end to fix it. I apologize for the inconvenience.

3 Likes

This has been fixed and will be released in the next release, 1.17.7-preview.

2 Likes

Do I need a more recent Unity version than 2020.2.7 to get this? The package manager only shows up to 1.17.6 for me.

7214335--867163--upload_2021-6-7_13-34-44.png

Or is this release still taking time? I’m wondering, because it’s been three months.

In newer versions of the Editor only verified versions show up in the UI. This takes time and not all versions get Verified for that Editor version.

For updates that are not verified you have to manually edit the manifest file, such as:

"dependencies": {
"com.unity.addressables": "1.18.9"
}
1 Like