docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetVariantSelections

    GetVariantSelections()

    Returns a collection of VariantSetName -> ActiveVariantSelectionName, which represents the active variant selection at the prim associated with this behaviour.

    Declaration
    public Dictionary<string, string> GetVariantSelections()
    Returns
    Type Description
    Dictionary<string, string>
    Examples

    If two sets with selections are modelingVariant=CupWithHandle and shadingVariant=BrightBlue, resulting in a bright blue cup with a handle. In this example, the selections dictionary would contain: { "modelingVariant" = "CupWithHandle", "shadingVariant" = "BrightBlue" }

    In This Article
    Back to top
    Copyright © 2023 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)