docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RemoveFloatValue

    RemoveFloatValue(GameItem, string)

    Remove specified Stat from specified GameItem.

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

    GameItem upon which Stat is to be removed.

    string statDefinitionId

    StatDefinition's Id to search for.

    Returns
    Type Description
    bool

    True if Stat found and removed, else false

    RemoveFloatValue(GameItem, int)

    Remove specified Stat from specified GameItem.

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

    GameItem upon which Stat is to be removed.

    int statDefinitionHash

    StatDefinition's Hash to search for.

    Returns
    Type Description
    bool

    True if Stat found and removed, 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)