docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateOccurrenceFromSelection

    CreateOccurrenceFromSelection(string, OccurrenceList, uint, bool)

    Create a new occurrence and add the given occurrences as children

    Declaration
    public uint CreateOccurrenceFromSelection(string name, OccurrenceList children, uint parent, bool keepMaterialAssignment = true)
    Parameters
    Type Name Description
    string name

    Name of the new occurrence

    OccurrenceList children

    Add given occurrence as children (if any)

    uint parent

    If defined, the new occurrence will be created as a child of this parent. Else if children are defined, the first common parent of children will be used as a parent for this new occurrence. Last resort will be to use the root as parent

    bool keepMaterialAssignment

    If defined, material assignation will be updated to keep the visual same aspect

    Returns
    Type Description
    uint
    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)