✅ vscode telling me some weird errors

this makes no sense
No description
5 Replies
slowly losing it
slowly losing itOP6mo ago
so apparently it loses all its properties if its nullable even tho i abort the function if it's null
xandyMelo
xandyMelo6mo ago
you can use:
pieceWeClicked.Value.moving
pieceWeClicked.Value.moving
Since you checked if it is null before, the .Value will not generate errors.
slowly losing it
slowly losing itOP6mo ago
it doesn't have a Value property tho and that doesnt solve my issue
xandyMelo
xandyMelo6mo ago
Sorry, I got it wrong, I can't reproduce your error, unless I write the property name wrong.
slowly losing it
slowly losing itOP6mo ago
ah ok i just needed to make it a class and not a struct

Did you find this page helpful?