docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method OnEnable

    OnEnable()

    Unity calls this method when the object loads.

    Declaration
    public virtual void OnEnable()
    Remarks

    You can safely override this method and not call base.OnEnable() unless you want Unity to display all the properties from the VolumeComponent automatically.

    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)