Search Issue Tracker

Fixed in 5.0

Votes

0

Found in

4.1.0b2

Issue ID

519086

Regression

No

Incorrect types in AddComponent() are handled silently

Deployment Management

-

Passing incorrect paramater to any of overloaded methods AddComponent() should not result in silently do nothing
Following cases will be silently handled:
new GameObject("Test", typeof(string));
go.AddComponent(typeof(string));
go.AddComponent("AnimationMISPRINT");

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.