0
Answered

set int to 0

MissBig 11 months ago updated by Lazlo Bonin (Lead Developer) 11 months ago 2

Hi, I was wondering how would I do set int to 0. For example set gameObject = 0. Where gameObject is the variable. It's probably really basic but wondering the best way to do this. Equals look for a bool but I need it to equal an int value.

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Answer

+1
Answer

Just worked it out All I did was use a set variable to an int literal.

+1
Answer

Just worked it out All I did was use a set variable to an int literal.