docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ResetToDefaultFloatValue

    ResetToDefaultFloatValue(GameItem, string)

    Reset Stat to the correct default value.

    Declaration
    public static bool ResetToDefaultFloatValue(GameItem gameItem, string statDefinitionId)
    Parameters
    Type Name Description
    GameItem gameItem

    GameItem upon which Stat is to be reset.

    string statDefinitionId

    StatDefinition's Id to search for.

    Returns
    Type Description
    bool

    True if specified Stat was found and reset, else False.

    ResetToDefaultFloatValue(GameItem, int)

    Reset Stat to the correct default value.

    Declaration
    public static bool ResetToDefaultFloatValue(GameItem gameItem, int statDefinitionHash)
    Parameters
    Type Name Description
    GameItem gameItem

    GameItem upon which Stat is to be reset.

    int statDefinitionHash

    StatDefinition's Hash to search for.

    Returns
    Type Description
    bool

    True if specified Stat was found and reset, else False.

    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)