mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-16 08:17:50 +08:00
33 lines
765 B
C#
33 lines
765 B
C#
![]() |
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using UnityEngine;
|
|||
|
#if CPP
|
|||
|
using UnhollowerBaseLib;
|
|||
|
#endif
|
|||
|
|
|||
|
namespace Explorer.Unstrip.LayerMasks
|
|||
|
{
|
|||
|
public static class LayerMaskUnstrip
|
|||
|
{
|
|||
|
#if CPP
|
|||
|
internal delegate IntPtr d_LayerToName(int layer);
|
|||
|
internal static d_LayerToName LayerToName_iCall =
|
|||
|
IL2CPP.ResolveICall<d_LayerToName>("UnityEngine.LayerMask::LayerToName");
|
|||
|
|
|||
|
public static string LayerToName(int layer)
|
|||
|
{
|
|||
|
var ptr = LayerToName_iCall(layer);
|
|||
|
|
|||
|
return IL2CPP.Il2CppStringToManaged(ptr);
|
|||
|
}
|
|||
|
#else
|
|||
|
public static string LayerToName(int layer)
|
|||
|
{
|
|||
|
return LayerMask.LayerToName(layer);
|
|||
|
}
|
|||
|
#endif
|
|||
|
}
|
|||
|
}
|