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.
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
- Random Number Operator in a child System only has set limited seeds for particle spawning in a visual effect when entering the Play Mode
- Blender FBX file import triggering incorrect errors
- Overlay UI opaque colors are shown incorrectly in the Player when a HDR display and Linear Color Space are used
- [D3D12] HDRP DLSS resource state is reported incorrectly when when calling ClearUnorderedAccessViewFloat
- URP Decal Projector does not render decal when in Play Mode with a specific project
Pharan
Aug 19, 2015 02:18
You're not supposed to define constructors for MonoBehaviours.