docs.unity.cn

ML Agents 3.0.0-exp.1

Search Results for

    Show / Hide Table of Contents

    Method OnDisable

    OnDisable()

    Called when the attached [GameObject] becomes disabled and inactive. [GameObject]: https://docs.unity.cn/Manual/GameObjects.html

    Declaration
    protected virtual void OnDisable()
    Remarks

    Always call the base Agent class version of this function if you implement OnDisable() in your own Agent subclasses.

    Examples
    protected override void OnDisable()
    {
        base.OnDisable();
        // additional OnDisable logic...
    }
    See Also
    OnEnable()
    In This Article
    • OnDisable()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023