Search Issue Tracker
Fixed in 2017.1.X
Votes
1
Found in
4.3.0b5
Issue ID
569427
Regression
No
No errors if RequireComponent attribute applied to component after it was added to an object
Steps:
1. Create an object.
2. Create custom component A
3. Add A to the object
4. Edit component A that it now requires e.g. Rigidbody
[RequireComponent(typeof(Rigidbody))]
public class A : MonoBehaviour {}
5. Play scene
There will be no errors.
Should throw exception or give warning in console.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [URP] Crash on GameObject::QueryComponentByType when baking a Reflection Probe in an unsaved/untitled Scene
- No Icons are used for the Entry and Exit States in the Inspector when selected in an Animator Controller
- Crash on PlayerMain(int, char const**) when exiting Standalone Player with a Particle System in the Scene
- No Icon is used for the Runtime Animator Controller Type in a Search Window when assigning an Animator Controller in the Animator Component
- Unity Version Control server textfield’s text overlaps with the dropdown triangle button in the Explore repositories window when an organization with a long name is selected
Add comment