docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddStatFloat

    AddStatFloat(int, float)

    Adds default value to StatDetailDefinition for specified stat. This method throws if not in editor mode.

    Declaration
    public void AddStatFloat(int statDefinitionHash, float value)
    Parameters
    Type Name Description
    int statDefinitionHash

    The StatDefinition Hash to address.

    float value

    The default value for the stat.

    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)