-
Notifications
You must be signed in to change notification settings - Fork 4.3k
[bugfix] Fix MLA-793 Make Unity lifecycle methods protected. Added tests for changes #3590
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
@@ -0,0 +1,2 @@ | |||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> |
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.
Should this be here?
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.
It was added automatically by Rider. 🤷♂
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.
A couple of minor comments.
|
||
protected override void OnEnable() | ||
{ | ||
if (callBase) |
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.
missing { }
{ | ||
throw new UnityAgentsException("Call to SendInfoToBrain when Agent hasn't been initialized." + | ||
"Please ensure that you are calling 'base.OnEnable()' if you have overridden OnEnable."); | ||
|
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.
remove empty line
@@ -42,6 +42,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. | |||
- `AgentInfo.actionMasks` has been renamed to `AgentInfo.discreteActionMasks`. | |||
- `DecisionRequester` has been made internal (you can still use the DecisionRequesterComponent from the inspector). `RepeatAction` was renamed `TakeActionsBetweenDecisions` for clarity. (#3555) | |||
- The `IFloatProperties` interface has been removed. | |||
- Fix #3579. |
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.
Lets expand with a 1-liner and then have a link to the Issue
Proposed change(s)
Address issue raised in #3579.
Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
#3579
https://jira.unity3d.com/browse/MLA-739
Types of change(s)
Checklist
Other comments