docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsConstantExpression

    IsConstantExpression<T>(T)

    Performs a compile-time check on whether the provided argument is known to be constant by Burst.

    Declaration
    public static bool IsConstantExpression<T>(T t) where T : unmanaged
    Parameters
    Type Name Description
    T t

    The value to check whether it is constant.

    Returns
    Type Description
    bool

    True if Burst knows at compile-time that it is a constant, false otherwise.

    Type Parameters
    Name Description
    T

    Type

    IsConstantExpression(void*)

    Performs a compile-time check on whether the provided argument is known to be constant by Burst.

    Declaration
    public static bool IsConstantExpression(void* t)
    Parameters
    Type Name Description
    void* t

    The value to check whether it is constant.

    Returns
    Type Description
    bool

    True if Burst knows at compile-time that it is a constant, false otherwise.

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