Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions DevProject/Assets/Default.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<RuleSet Name="MLAgents" ToolsVersion="10.0">
<Rules AnalyzerId="Unity.Serialization.Analyzer" RuleNamespace="Unity.Serialization.Analyzer">
<Rule Id="UAC1005" Action="None" />
<Rule Id="UAC1015" Action="None" />
</Rules>
</RuleSet>
1 change: 1 addition & 0 deletions DevProject/Assets/csc.rsp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-warnaserror+
-warnaserror-:618
-nowarn:UAC1005
-nowarn:UAC1015
1 change: 1 addition & 0 deletions Project/Assets/Default.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<RuleSet Name="MLAgents" ToolsVersion="10.0">
<Rules AnalyzerId="Unity.Serialization.Analyzer" RuleNamespace="Unity.Serialization.Analyzer">
<Rule Id="UAC1005" Action="None" />
<Rule Id="UAC1015" Action="None" />
</Rules>
</RuleSet>
1 change: 1 addition & 0 deletions Project/Assets/csc.rsp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-warnaserror+
-warnaserror-:618
-nowarn:UAC1005
-nowarn:UAC1015
5 changes: 5 additions & 0 deletions com.unity.ml-agents/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this package will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased
#### com.unity.ml-agents (C#)
- Fix a crash that could occur when exiting playmode (#6296)

## [4.0.3] - 2026-04-17
### Minor Changes
#### com.unity.ml-agents (C#)
Expand Down
4 changes: 4 additions & 0 deletions com.unity.ml-agents/Runtime/Academy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ void HandleOnPlayModeChanged(PlayModeStateChange state)
{
Dispose();
}
else if (state == PlayModeStateChange.ExitingPlayMode)
{
Dispose();
}
}

#endif
Expand Down
Loading