05-05-2018, 08:56 AM
(This post was last modified: 05-05-2018, 09:26 AM by metroidsnes.)
Unity 2017.4.2f2
Scripting Runtime Version: Stable (.NET 3.5)
API Compatibility Level: .NET 2.0 Subset
Feature not available
In Visual Studio, CurvySplineSegment.cs, when starting VS debugger I get: Unity compiles without errors.
InputSplineShape Range reset on enter play mode
When entering play mode, m_StartCP and m_EndCP in SplineInputModuleBase.cs are set to null and stay null after exiting play mode.
From what I found, it's directly caused by StartCP.Spline being null when assigning shape in InputSplineShape.OnValidate().
My temporary workaround:
EDIT: Related Unity errors:
Scripting Runtime Version: Stable (.NET 3.5)
API Compatibility Level: .NET 2.0 Subset
Feature not available
In Visual Studio, CurvySplineSegment.cs, when starting VS debugger I get:
Code:
CS8025 Feature `readonly automatically implemented properties` is not available in C# 4. Please use language version 6 or grater
InputSplineShape Range reset on enter play mode
When entering play mode, m_StartCP and m_EndCP in SplineInputModuleBase.cs are set to null and stay null after exiting play mode.
From what I found, it's directly caused by StartCP.Spline being null when assigning shape in InputSplineShape.OnValidate().
My temporary workaround:
EDIT: Related Unity errors: