From 984e5700ccf829feac6c261a8ac616734dcc4761 Mon Sep 17 00:00:00 2001 From: Jakob Hunsballe Date: Thu, 20 Oct 2016 15:53:51 +0200 Subject: [PATCH] Remove stray 'readonly' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ‘readonly’ doesn’t play well with serialisation, remove it. --- Assets/NavMeshComponents/Scripts/NavMeshModifierVolume.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/NavMeshComponents/Scripts/NavMeshModifierVolume.cs b/Assets/NavMeshComponents/Scripts/NavMeshModifierVolume.cs index 99186a7..a12f6b7 100644 --- a/Assets/NavMeshComponents/Scripts/NavMeshModifierVolume.cs +++ b/Assets/NavMeshComponents/Scripts/NavMeshModifierVolume.cs @@ -21,7 +21,7 @@ namespace UnityEngine.AI // List of agent types the modifier is applied for. // Special values: empty == None, m_AffectedAgents[0] =-1 == All. [SerializeField] - readonly List m_AffectedAgents = new List (new int[] { -1 }); // Default value is All + List m_AffectedAgents = new List (new int[] { -1 }); // Default value is All static readonly List s_NavMeshModifiers = new List ();