Search Issue Tracker

Fixed in 2022.2.X

Fixed in 2020.3.X, 2021.3.X, 2022.1.X

Votes

0

Found in

2019.4

2020.3

2021.2

2022.1

2022.2

Issue ID

1404185

Regression

No

No error if setting a property with the same name but different types

Shader System

-

STR:
1. Create a new project using the 3D template
2. Copy the attached script to the Assets folder
3. Assign this script to the main camera
4. Press play

Expected: an error is printed saying that a property with the name "foo" already exists, but the type is different
Actual: no error is printed

This behaviour hides bugs in user code.

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.