Search Issue Tracker
Duplicate
Votes
0
Found in
5.1.2f1
Issue ID
719100
Regression
No
Creating a prefab from object which has rigidbody and MonoBehaviour with constructor attached causes crash
Steps to reproduce:
1. Open "RigidbodyCrash.zip" project
2. Open scene "bug"
3. Drag "GameObject" from hierarchy to project tab to create a prefab
4. Observe a crash
Workaround: Don't use constructors for MonoBehaviours. Instead, use Start() or Awake() for initialization.
Comments (1)
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
- Memory leak when VFX Graph is open and Camera has "Target Texture" enabled
- The Canvas component's warning box is missing an apostrophe when Additional Shader Channels is set to "Normal" and "Tangent" with Render Mode set to "Screen Space - Overlay"
- Assigned Label or AssetBundle is not copied when duplicating certain asset types
- The "Disable Editor Analytics" flag locks when toggling it until the Preferences Window is reopened and Warning is no longer displayed when the Window is reopened
- 'AlphaToMask' is ignored when in non-resolving renderpasses on Metal
Pharan
Aug 19, 2015 02:18
You're not supposed to define constructors for MonoBehaviours.