public void ResetControllerEvents()
        {
            SerializedProperty listToCheck = this.GetPropertie(nameof(_target.ListToCheck));

            PointsOnSplineExtension[] allPoints = _target.Spline.transform.GetComponentsInChildren <PointsOnSplineExtension>();
            ExtSerializedProperties.ApplyArrayToSerializeArray(listToCheck, allPoints);
            this.ApplyModification();
        }
 private bool AttemptToAutoFillPointsOnSplines()
 {
     if (_target.ListToCheck.Length != 0)
     {
         return(false);
     }
     this.UpdateEditor();
     if (_target.Spline != null)
     {
         PointsOnSplineExtension[] allPoints = _target.Spline.transform.GetComponentsInChildren <PointsOnSplineExtension>();
         if (allPoints.Length == 0)
         {
             allPoints = GameObject.FindObjectsOfType <PointsOnSplineExtension>();
         }
         ExtSerializedProperties.ApplyArrayToSerializeArray(_controllers.serializedProperty, allPoints);
         this.ApplyModification();
     }
     return(true);
 }