docs.unity3d.com
    显示 / 隐藏目录

    Struct CommonQueryData

    Contains data that is used by queries and the objects that make queries alike

    Namespace: Unity.MARS.Query
    Syntax
    [Serializable]
    public struct CommonQueryData

    Fields

    overrideTimeout

    Declaration
    [Tooltip("When enabled, this query will time-out at a different rate than the app default.")]
    public bool overrideTimeout
    Field Value
    Type Description
    Boolean

    priority

    Declaration
    [Tooltip("The importance level of the query")]
    public MarsEntityPriority priority
    Field Value
    Type Description
    MarsEntityPriority

    reacquireOnLoss

    Declaration
    [Tooltip("When enabled, this query will go back to looking for another match if its data is lost")]
    public bool reacquireOnLoss
    Field Value
    Type Description
    Boolean

    timeOut

    Declaration
    [Tooltip("Sets how long this query should stay active before failing from lack of data. A negative value indicates no timeout.")]
    public float timeOut
    Field Value
    Type Description
    Single

    updateMatchInterval

    Declaration
    [Tooltip("The interval (in seconds) on which to check for updates to this query's match")]
    public float updateMatchInterval
    Field Value
    Type Description
    Single

    Properties

    currentTimeOut

    Gets the actual timeout value, whether it's been set here or is using the default

    Declaration
    public readonly float currentTimeOut { get; }
    Property Value
    Type Description
    Single

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)