No Vector3Int on version 5.6.5p1
It seems that Vector3Int (alongside other int type vectors) were implemented on Unity in version 2017.2.0 (12 Oct, 2017). Still, i'm using version 5.6.5 (28 Dec, 2017) and for some reason i can't use the native Vector3Int type, that should be included on Unity.Engine. Can anyone help me?
Answer by Bunny83 · Feb 13, 2018 at 02:52 AM
Uhm haven't you just answered your own question? Since you use an older version of Unity this type doesn't exist in your version. You have to download the newer version if you want to use it. As alternative you can of course implement your own version. Some time ago i've written the Vector3i struct which provides almost the same functionality. I also still use Unity 5.6.1f1 so i can't use the Vector3Int struct as well.
There has been several newer versions since 5.6.5, just check the drop down menu at the top right. Also you use a patch release. Patch releases are intermediate versions which do not belong to the normal update chain.
Yeah... I just find it weird that version 5.6.5 was launched AFTER 2017.2.0 yet has less stuff, I'm not really familiar with Unity's way of handling version history, for me the latest release was the most updated. Anyway, i downloaded the beta version that includes the new Shader thing aswell, something I should've done a long time ago. Pretty excited about it.
Thanks for the help!
Where do you see that release data of 5.6.5p1? Since it's a patch release it may be just a security update. As i said patch releases do not represent a new version. It just provides temporary bugfixes.
I got them from here: https://unity3d.com/pt/get-unity/download/archive
Answer by ransomink · Feb 13, 2018 at 02:59 AM
Vector3Int was implemented in Unity 2017.2.0 as you've stated. You are using an older version, Unity 5.6.5. That is why it does not exist. As Bunny83 mentioned, there are many versions after 5.6.5. If you really need it you can update to the newest version but I'd only do so if that newer version has features related to your game...
Yeah, i got confused about Unity version history, i thought 5.6.5 was the latest (not counting the 2018 beta) so it seemed really weird that the "latest" version would not have some of the stuff the "older" one had. Luckily you guys clarified that for me.