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

Build Pipeline

-

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!

  1. 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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.