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 © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023