mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-01 19:13:03 +08:00
28 lines
675 B
C#
28 lines
675 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using UnityEngine;
|
|
using Explorer.Helpers;
|
|
#if CPP
|
|
using UnhollowerBaseLib;
|
|
#endif
|
|
|
|
namespace Explorer.Unstrip.LayerMasks
|
|
{
|
|
public static class LayerMaskUnstrip
|
|
{
|
|
#if CPP
|
|
internal delegate IntPtr d_LayerToName(int layer);
|
|
|
|
public static string LayerToName(int layer)
|
|
{
|
|
var iCall = ICallHelper.GetICall<d_LayerToName>("UnityEngine.LayerMask::LayerToName");
|
|
return IL2CPP.Il2CppStringToManaged(iCall.Invoke(layer));
|
|
}
|
|
#else
|
|
public static string LayerToName(int layer) => LayerMask.LayerToName(layer);
|
|
#endif
|
|
}
|
|
}
|