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
- Skinned Mesh Renderer with multiple Animator Components does not render when "Optimize Game Objects" is enabled
- [iOS]Certain characters are not displayed when using iOS devices with 18 OS and newer
- Trees do not render in 'Unity Terrain - URP Demo Scene'
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
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