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)

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay