docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CleanInstances

    CleanInstances(bool, bool, uint)

    Clean prototypes and instances (lonely instances, overriding their prototypes hierarchies...).

    Declaration
    public void CleanInstances(bool removeUselessInstances, bool removeHierarchyOverridingInstances, uint occurrence = 0)
    Parameters
    Type Name Description
    bool removeUselessInstances

    Remove instances where they are not needed (prototype referenced once, ...)

    bool removeHierarchyOverridingInstances

    Remove instances overriding their prototypes sub-hierarchies.

    uint occurrence

    Root occurrence for the process

    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)