DEV Community

Khandokar Nafis Jaman
Khandokar Nafis Jaman

Posted on

[Short tips]! Variable declaration in Unity3D

Here is a short tip for Unity3D developers in variable declaration. Sometimes, we declare a new variable and face a error. The error says, ".... hides inherited member .....". As like the picture below...

Image description

To get rid of this, simply add a new keyword before datatype.

Image description

Now it's okay. Happy Coding!

Top comments (0)