You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.2 KiB
33 lines
1.2 KiB
using UnityEngine;
|
|
using UnityEngine.Serialization;
|
|
|
|
namespace ARLocation
|
|
{
|
|
/// <summary>
|
|
/// Data used to construct a spline passing trough a set of geographical
|
|
/// locations.
|
|
/// </summary>
|
|
[CreateAssetMenu(fileName = "AR Location Path", menuName = "AR+GPS/Path")]
|
|
public class LocationPath : ScriptableObject
|
|
{
|
|
/// <summary>
|
|
/// The geographical locations that the path will interpolate.
|
|
/// </summary>
|
|
[FormerlySerializedAs("locations")] [Tooltip("The geographical locations that the path will interpolate.")]
|
|
public Location[] Locations;
|
|
|
|
[FormerlySerializedAs("splineType")] [Tooltip("The type of the spline used")]
|
|
public SplineType SplineType = SplineType.CatmullromSpline;
|
|
|
|
/// <summary>
|
|
/// The path's alpha/tension factor.
|
|
/// </summary>
|
|
[FormerlySerializedAs("alpha")] [Tooltip("The path's alpha/tension factor.")]
|
|
public float Alpha = 0.5f;
|
|
|
|
/// <summary>
|
|
/// The scale used in the editor scene viewer for drawing the path.
|
|
/// </summary>
|
|
[FormerlySerializedAs("sceneViewScale")] public float SceneViewScale = 1.0f;
|
|
}
|
|
}
|