docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Constructor GhostComponentVariationAttribute

    GhostComponentVariationAttribute(Type, string, bool)

    Initialize and declare the variant for a given component type. We can't constrain on a specific interface, thus, the validation is done at compile time in the constructor (for now).

    Declaration
    public GhostComponentVariationAttribute(Type componentType, string displayName = null, bool isTestVariant = false)
    Parameters
    Type Name Description
    Type componentType

    ComponentType

    string displayName

    DisplayName

    bool isTestVariant

    IsTestVariant

    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)