SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
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.

31 lines
922 B

4 years ago
  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 Data", menuName = "AR+GPS/Location")]
  10. public class LocationData : ScriptableObject
  11. {
  12. /// <summary>
  13. /// The geographical locations that the path will interpolate.
  14. /// </summary>
  15. [FormerlySerializedAs("location")] [Tooltip("The geographical locations that the path will interpolate.")]
  16. public Location Location;
  17. public static LocationData FromLocation(Location location) {
  18. var data = CreateInstance<LocationData>();
  19. data.Location = location;
  20. return data;
  21. }
  22. public override string ToString()
  23. {
  24. return Location.ToString();
  25. }
  26. }
  27. }