Search Issue Tracker
In Progress
Votes
1
Found in [Package]
2.6.0
Issue ID
ADDR-4010
Regression
No
LoadAsset fails and Warning "The referenced script (Unknown) on this Behaviour is missing!" is present when using AssetBundle with Addressables
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Navigate to Window > Asset Management > Addressables > Groups
4. Change Play Mode Script to "Use Existing Build (Windows)"
5. Click Build > New Build > Default Build Script
6. Enter the Play Mode
7. Observe the Console
Expected result: "LoadAllAssets.Length: 1" exists
Actual result: Warning "The referenced script (Unknown) on this Behaviour is missing!" and Log Message "LoadAllAssets.Length: 0" is present
Reproducible with: 2.6.0 (2022.3.62f1, 6000.1.9f1, 6000.3.0a1)
Could not test with: 6000.0.52f1 (Library\PackageCache\com.unity.2d.tilemap.extras@eefc9f6533f8\Editor\Tiles\AutoTile\AutoTileTemplate.cs(12,37): error CS0246: The type or namespace name 'TileTemplate' could not be found)
Reproducible on:
Play mode
Windows Standalone Player
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Notes:
- "addressablesgroup_asset_all.bundle" does not contain a dependency on "(hash)_monoscripts_(hash).bundle"
- Reproducible with Mono and IL2CPP
Workarounds:
- Execute `Addressables.LoadAssetAsync<IAssetBundleResource>("(hash)_monoscripts_(hash).bundle")` before "LoadAllAssets"
- Set "MonoScript Bundle Naming Prefix" to "Custom" in AddressableAssetSettings and do not set "MonoScript Bundle Custom Prefix"
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
- Graphics State Collection warm-up does not work when using with Addressables Shaders
- "Baked Shadow Radius" field is visible but inactive when when the Shadow Type is set to "Hard Shadows" under the Light Component
Add comment