docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetEnabled

    SetEnabled(Feature, Feature, bool)

    Sets or removes one or more Feature flags.

    Declaration
    public static Feature SetEnabled(this Feature self, Feature feature, bool enabled)
    Parameters
    Type Name Description
    Feature self

    The Feature being extended.

    Feature feature

    The Feature(s) to set or remove.

    bool enabled

    If true, the flag(s) in feature will be set. If false, it/they will be removed.

    Returns
    Type Description
    Feature

    self with the Feature(s) set or removed according to the value of enabled.

    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)