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
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
Add comment