Warning notification how do I fix the problem?
I have a Assets/BulletUnity/Examples/Scene/BulletSharpDemos/ConvexDecompositionDemo/ConvexDecompositionDemo.cs(49,32): warning CS0219: The variable 'childshape' is assigned but it's value is never used and here is the code line:
CollisionShape childShape = compound.GetChildShape(index1);
how do I fix this and if I just delete this part of the coding (and also with all other warnings such as this one), will it negatively have an effect upon the game performance of any game that I'm developing I really need the help here.
Answer by gashraf · Aug 01, 2018 at 08:56 PM
It is just a warning to tell you that you have assigned a variable but never actually use it (on the right hand side of an expression or pass it to another function). So you should remove all such variables that you never use... it will give you better performance :)
So if I understan you correctly, what you're saying to just delete the codeline correct?
Your answer
Follow this Question
Related Questions
how to make the warning DontDestroyOnLoad only work for root GameObjects go away? 2 Answers
why i get this warning and how i fix it,why i get this varning and how i solve it 0 Answers
How Can I Build My Game 2 Answers
How to generate build or compile time errors? 0 Answers
173 warnings with build to XCode 7 0 Answers