docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ConvertToScreenSpace

    ConvertToScreenSpace(Camera, Vector3)

    Converts a 3D world space coordinate to image pixel space.

    Declaration
    public static Vector3 ConvertToScreenSpace(Camera camera, Vector3 worldLocation)
    Parameters
    Type Name Description
    Camera camera

    The rendering camera

    Vector3 worldLocation

    The 3D world location to convert

    Returns
    Type Description
    Vector3

    The coordinate in pixel space

    In This Article
    Back to top
    Copyright © 2024 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)