SetVersionInfo.cs 933 B

1234567891011121314151617181920212223242526
  1. /*===============================================================================
  2. Copyright (C) 2022 Immersal - Part of Hexagon. All Rights Reserved.
  3. This file is part of the Immersal SDK.
  4. The Immersal SDK cannot be copied, distributed, or made available to
  5. third-parties for commercial purposes without written permission of Immersal Ltd.
  6. Contact sdk@immersal.com for licensing requests.
  7. ===============================================================================*/
  8. using System;
  9. using TMPro;
  10. using UnityEngine;
  11. public class SetVersionInfo : MonoBehaviour
  12. {
  13. [SerializeField] private TextMeshProUGUI m_VersionText;
  14. void Start()
  15. {
  16. string versionText = Application.productName+" v" + Application.version;
  17. string copyrightText = "© " + DateTime.Now.Year + " "+Application.companyName+" All Rights Reserved.";
  18. m_VersionText.text = versionText + Environment.NewLine + copyrightText;
  19. }
  20. }