Vector3
Options
Betazero
✭
My game is pretty much all Vector2 but PUN freaks out with Vector2. Can I convert all the Photon Vector3 calls to Vector2? Which photon scripts do I need to change if It can work?
Thanks,
Russell
Thanks,
Russell
0
Comments
-
What exactly does not work for you?
You can put Vector2 everywhere instead of Vector3, it's coverted automatically.0 -
if I instantiate using Vector2, it does not update between games and the games lock up. Not sure what is going on but once I change it back to 3 everything works fine.0
-
At the moment, Instantiate expects a Vector3. We will soon switch to Unity 4.3.4 and support the 2D features better. Then Instantiate and other methods will accept Vector2, too.
I can't provide you a list of things you have to change to get this done earlier. If you want to, please figure it out step by step.0 -
Ok thanks. Is it only instantiate that is a problem? I have lots of things that I only track Vector2.0
-
We now switched to 4.3.4 and look into 2D support.
I couldn't reproduce your issue though.
As far as I can see, you can send Vector2 wherever a Vector3 is expected.
Can you explain more what "freaks out" means?0