docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property discarded

    discarded

    Determines if this GameItem instance has been discarded (removed from Game Foundation). GameItem instances being standard objets, they cannot be destroyed and garbage collected while all their references are not set to null. The discarded property is a way for you to know if the object is still active within Game Foundation.

    Declaration
    public bool discarded { get; }
    Property Value
    Type Description
    bool

    True if the GameItem instance has been removed from Game Foundation.

    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)