-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Add CreateActuators API, obsolete old method. #4899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… the original method. The original method will be removed in the future.
@@ -12,8 +13,21 @@ public abstract class ActuatorComponent : MonoBehaviour | |||
/// Create the IActuator. This is called by the Agent when it is initialized. | |||
/// </summary> | |||
/// <returns>Created IActuator object.</returns> | |||
[Obsolete("Use CreateActuators instead.")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this is abstract people will still need to override it until we remove it. The migration doc tells them how to disable the warnings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh, this is annoying but I'm not sure if not marking it obsolete is worse.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, i went through the same thought process and ended up here.
Proposed change(s)
Add CreateActuators API to ActuatorComponent, obsolete CreateActuator, and have the base implementation wrap a call to the original in an Array and return it.
Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
Types of change(s)
Checklist
Other comments