Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2019.4.6f1
2020.1
2020.2
Issue ID
1272602
Regression
No
Managed code stripping strips Animation Rigging Scripts when building with Asset Bundles
How to reproduce:
1. Open the attached "AnimationBug2.zip" project
2. Open the "SampleScene" Scene from the Assets > Scenes folder
3. Enter Play Mode and observe the Model
4. Exit Play Mode
5. Build and Run the project
Expected results: the model behaves the same way in a built game as in Play Mode
Actual results: the model is stuck in a T-Pose and Player.log is full of errors
Reproducible with: 2019.4.9f1, 2020.1.4f1, 2020.2.0a21
Could not test with: 2018.4.26f1 (Animation Rigging package isn't available)
Notes:
-This issue reproduces with both Mono and IL2CPP Scripting Backends
-This issue reproduces with both .NET 4.x and .NET Standard 2.0 API Compatibility Levels
-This issue reproduces with Low, Medium, and High Managed Stripping Levels
-This issue doesn't reproduce with Disable Managed Stripping Level
-Most of the errors in the Player.log file are: The referenced script (Unknown) on this Behaviour is missing!
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
Resolution Note:
AssetBundle manifest file contains the list of used class types in asset bundles and must be provided to the build pipeline via the BuildPlayerOptions struct in order for code stripping to know about these classes. https://docs.unity3d.com/ScriptReference/BuildPlayerOptions.html