Why does the lecturer use int32 in the FOR loop instead of a regular int?
Unreal uses int32
for clarity. int
in C++ is typically a signed 32-bit and the signed part is assumed. Unreal specifically specifies signed when using typedef to create the int32 type which ensures it is explicitly signed. See here:
int32 | Unreal Engine Documentation
Note that you could probably get away with using int but I personally wouldn’t take that risk.
1 Like
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.