Using serializable floats instead of Vector2

Is there a reason that you make 2 floats serializable instead of a single Vector2? I created the latter when I was doing the challenge and it seems to work fine and for me is more readable. It’s a long time since I did any real development though so I’m not sure if this would create problems down the line.

1 Like

I’ve done the same. Personally can’t see a reason it would create a problem.

1 Like

I don’t know for certain, but I would suspect with Rick wearing his designer hat, he saw these as two levers which could be adjusted, therefore perhaps more obvious to a designer.

As a programmer the Vector2 makes perfect sense.

Privacy & Terms