Jump to content

Any C# experts here?


bFe

Recommended Posts

 

Is this what you're following? 

 

Because the error basicly means you're using an integral value where you should have or want to have a string. Integrals are 1234 etc. Strings can handle letters etc.

You would need to convert the integral value to a string.

string MyString = "123";
int MyInt = Convert.ToInt32(MyString);

Then call MyInt where you want to use it.

 

I could be off, been a while since I used C#

 

 

Also, try check the video at around 26 minutes, did try that or did you try it some other way? Since you're using Unity, it could be functioning differently.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...