Skip to content

Commit c0a2b29

Browse files
author
Chris Elion
authored
disable compile warning (#3529)
* disable compile warning * remove line numbers
1 parent 49003df commit c0a2b29

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

com.unity.ml-agents/Runtime/Policy/BehaviorParameters.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,14 @@ enum BehaviorType
3030
InferenceDevice m_InferenceDevice;
3131
[HideInInspector]
3232
[SerializeField]
33+
34+
// Disable warning /com.unity.ml-agents/Runtime/Policy/BehaviorParameters.cs(...):
35+
// warning CS0649: Field 'BehaviorParameters.m_BehaviorType' is never assigned to,
36+
// and will always have its default value
37+
// This field is set in the custom editor.
38+
#pragma warning disable 0649
3339
BehaviorType m_BehaviorType;
40+
#pragma warning restore 0649
3441
[HideInInspector]
3542
[SerializeField]
3643
string m_BehaviorName = "My Behavior";

0 commit comments

Comments
 (0)