Constant.Layer.cs 1000 B

123456789101112131415161718192021222324252627282930
  1. //------------------------------------------------------------
  2. // Game Framework
  3. // Copyright © 2013-2021 Jiang Yin. All rights reserved.
  4. // Homepage: https://gameframework.cn/
  5. // Feedback: mailto:ellan@gameframework.cn
  6. //------------------------------------------------------------
  7. using UnityEngine;
  8. namespace MetaClient
  9. {
  10. public static partial class Constant
  11. {
  12. /// <summary>
  13. /// 层。
  14. /// </summary>
  15. public static class Layer
  16. {
  17. public const string DefaultLayerName = "Default";
  18. public static readonly int DefaultLayerId = LayerMask.NameToLayer(DefaultLayerName);
  19. public const string UILayerName = "UI";
  20. public static readonly int UILayerId = LayerMask.NameToLayer(UILayerName);
  21. public const string TargetableObjectLayerName = "Targetable Object";
  22. public static readonly int TargetableObjectLayerId = LayerMask.NameToLayer(TargetableObjectLayerName);
  23. }
  24. }
  25. }