Search Issue Tracker
By Design
Votes
0
Found in
5.3.4f1
Issue ID
791261
Regression
No
BlendTree created through script disappears when starting Play Mode
How to reproduce:
1. Open the attached project
2. Delete ScriptedBlendTree controller in Assets folder as it is corrupted
3. Generate a new controller via script (MyMenu -> Create Controller)
4. Check the controller in animator window. It has one state and BlendTree in it
5. Keep BlendTree open
6. Play the scene, which is empty
7. Notice that Blend Tree shrinks and if you click on it few times it disappears with whole layer
By Design: The BlendTree needs to be added to an asset. Otherwise its not persisted when going in play mode. One can either :
1/ use AssetDatabase.AddObjectToAsset(blendTree, AssetDatabase.GetAssetPath(controller));
or
2/AnimatorController.CreateBlendTreeInController
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
Add comment