docs.unity3d.com
    Show / Hide Table of Contents

    Class InventoryItemData

    Inventory item data.

    Inheritance
    Object
    Object
    ScriptableObject
    InventoryItemData
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: NotificationSamples.Demo
    Syntax
    [CreateAssetMenu(fileName = "InventoryItemData", menuName = "NotificationsSamples/Inventory Item", order = 1)]
    public class InventoryItemData : ScriptableObject

    Fields

    CostIncrease

    Declaration
    [Tooltip("Cost increase every time it is bought.")]
    public int CostIncrease
    Field Value
    Type Description
    Int32

    CreationTimeIncrease

    Declaration
    [Tooltip("Increase the creation time every time it is bought (minutes).")]
    public float CreationTimeIncrease
    Field Value
    Type Description
    Single

    CurrencyBonus

    Declaration
    [Tooltip("Currency bonus the item provides per second.")]
    public float CurrencyBonus
    Field Value
    Type Description
    Single

    Description

    Declaration
    [Tooltip("Item's description.")]
    public string Description
    Field Value
    Type Description
    String

    Icon

    Declaration
    [Tooltip("The item's icon to use in the UI.")]
    public Sprite Icon
    Field Value
    Type Description
    Sprite

    IconId

    Declaration
    [Tooltip("Notification icon ID.")]
    public string IconId
    Field Value
    Type Description
    String

    InitialCost

    Declaration
    [Tooltip("Item's initial cost.")]
    public int InitialCost
    Field Value
    Type Description
    Int32

    InitialCreationTime

    Declaration
    [Tooltip("How long it takes to create the item after buying it (minutes).")]
    public float InitialCreationTime
    Field Value
    Type Description
    Single

    Title

    Declaration
    [Tooltip("Item's title.")]
    public string Title
    Field Value
    Type Description
    String
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023