docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property hasBeenDiscarded

    hasBeenDiscarded

    Determines if this item has been discarded (removed from Game Foundation). Items being standard objects, they cannot be destroyed and garbage collected as long as all their references are not set to null.

    This property is a way for you to know if the object is still active within Game Foundation.

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

    True if the item 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)