docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetActive

    SetActive(bool)

    Sets the state of ScriptableRenderFeature (true: the feature is active, false: the feature is inactive). If the feature is active, it is added to the renderer it is attached to, otherwise the feature is skipped while rendering.

    Declaration
    public void SetActive(bool active)
    Parameters
    Type Name Description
    bool active

    The true value activates the ScriptableRenderFeature and the false value deactivates it.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)