Skip to content

Can Agent.OnEnable() and Academy.FixedUpdate() be made virtual? #2970

@kumarict

Description

@kumarict

I'm currently changing Agent.OnEnable() and Academy.FixedUpdate() to protected virtual functions. For Agent.OnEnable(), it's just to check if a variable is null and if not, to add it from the parent.

For Academy.FixedUpdate(), I have had good results by only calling base.FixedUpdate() (which calls EnvironmentStep()) when the parallel environments in my scene are all done with their respective steps.

So, if I'm doing this a wrong/bass-ackward way, please let me know the best practice. If this is acceptable, please consider making Agent.OnEnable() and Academy.FixedUpdate() protected virtual functions.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    requestIssue contains a feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions