ERROR: pointers and fixed size buffers may only be used in an unsafe context AND the * or -> operater must be applied to a pointer

Hello.

I really need some help with this C# coding. I have been coding this the whole day, and im keep getting the same error…!

Im not that good at coding, but im sure some of you can help me? :I

Here´s what it says:

And my code is:

Thank you.

2 Answers

2

C# uses == instead of ** to check if values are equal.

MSDN has C# tutorials, be sure to run through them if you want to better understand the language. For instance, this page explains the operators you’re having trouble with.

Also, you can copy-paste your code in your posts and format it with the button marked “101010”

If this is the correct answer for you, press the check mark button under the vote up/down buttons to select it. Also, Unity Answers is Q&A, not a forum, so be sure to comment instead of posting another answer. Welcome to the site!

omg! Thank you so much!!

I have been sitting all day researching after the error with no luck, you just made my day :slight_smile: