Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Vector3int missing?

Discussion in 'Visual Scripting' started by jwjhdev_, Aug 28, 2021.

  1. jwjhdev_

    jwjhdev_

    Joined:
    Aug 28, 2021
    Posts:
    2
    Hi all,

    It looks like Vector3Int is missing from available components?

    It is a requirement input for the TileMap Set Tile component.

    Could anyone please confirm?

    If it is not available, currently, would really appreciate how I could add this manually so that the above tilemap component accepts the input.

    • Unity: 2021.1.18f1
    • Visual Scripting: 1.6.1

    Thank you.
     
  2. jwjhdev_

    jwjhdev_

    Joined:
    Aug 28, 2021
    Posts:
    2
    For anyone reading this with a similar issue, I found a work around.

    There is a function to convert a world vector to a cell vector: TileMap World to Cell component.

    This will convert a regular Vector 3 (float) to the Vector 3 TileMap requires.
     
    Last edited: Aug 28, 2021
  3. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Still an omission, one Unity ought to rectify.
     
    jwjhdev_ likes this.
  4. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    2,049
    Did you try looking it up in Type Options? Under Project Settings/Visual Scripting. Right now only the most commonly used properties are exposed by default. Some more niche ones might need to be added manually.