docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method TryReadVector2Value

    TryReadVector2Value(out Vector2)

    Try to read the value of the input as a Vector2.

    Declaration
    protected bool TryReadVector2Value(out Vector2 value)
    Parameters
    Type Name Description
    Vector2 value

    When this method returns true, the value read. Otherwise, the default for the type.

    Returns
    Type Description
    bool

    Returns true if the value was successfully read.

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