docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor StatDefinition

    StatDefinition(string, string, StatValueType)

    This is one entry in the list of possible Stats an item could have. This method throws if not in editor mode.

    Declaration
    public StatDefinition(string id, string displayName, StatDefinition.StatValueType statValueType)
    Parameters
    Type Name Description
    string id

    The Id this StatDefinition will use.

    string displayName

    The name this StatDefinition will use.

    StatDefinition.StatValueType statValueType

    The value type this StatDefinition will hold.

    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)