LocationPath.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. using UnityEngine;
  2. using UnityEngine.Serialization;
  3. namespace ARLocation
  4. {
  5. /// <summary>
  6. /// Data used to construct a spline passing trough a set of geographical
  7. /// locations.
  8. /// </summary>
  9. [CreateAssetMenu(fileName = "AR Location Path", menuName = "AR+GPS/Path")]
  10. public class LocationPath : ScriptableObject
  11. {
  12. /// <summary>
  13. /// The geographical locations that the path will interpolate.
  14. /// </summary>
  15. [FormerlySerializedAs("locations")] [Tooltip("The geographical locations that the path will interpolate.")]
  16. public Location[] Locations;
  17. [FormerlySerializedAs("splineType")] [Tooltip("The type of the spline used")]
  18. public SplineType SplineType = SplineType.CatmullromSpline;
  19. /// <summary>
  20. /// The path's alpha/tension factor.
  21. /// </summary>
  22. [FormerlySerializedAs("alpha")] [Tooltip("The path's alpha/tension factor.")]
  23. public float Alpha = 0.5f;
  24. /// <summary>
  25. /// The scale used in the editor scene viewer for drawing the path.
  26. /// </summary>
  27. [FormerlySerializedAs("sceneViewScale")] public float SceneViewScale = 1.0f;
  28. }
  29. }