docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Vector3IntExtensions

    Extension helper functions for converting Vector3Int to int3 and vice versa

    Inheritance
    object
    Vector3IntExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Tilemaps.Experimental
    Assembly: Unity.2D.Tilemap.Experimental.dll
    Syntax
    public static class Vector3IntExtensions

    Methods

    ToInt3(Vector3Int)

    Converts a Vector3Int to int3

    Declaration
    public static int3 ToInt3(this Vector3Int v)
    Parameters
    Type Name Description
    Vector3Int v

    Vector3Int to convert

    Returns
    Type Description
    int3

    Converted int3

    ToVector3Int(int3)

    Converts an int3 to Vector3Int

    Declaration
    public static Vector3Int ToVector3Int(this int3 v)
    Parameters
    Type Name Description
    int3 v

    int3 to convert

    Returns
    Type Description
    Vector3Int

    Converted Vector3Int

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)